Nixpacks CLI

The Nixpacks command-line interface is the primary interface for generating build plans and producing Docker images from application source. Core commands include `nixpacks plan` (emit the JSON build plan that would be used), `nixpacks build` (produce an OCI image via Docker BuildKit), and `nixpacks detect` (identify which providers match the source directory). The CLI accepts inline overrides for install, build, and start commands, Nix and apt packages, environment variables, the base build image, and a separate runtime image, and is distributed as a single Rust binary via Homebrew, install script, Docker image, and GitHub releases.

Nixpacks CLI is one of 5 APIs that Nixpacks publishes on the APIs.io network.

Tagged areas include CLI, Build, Plan, and Detect. The published artifact set on APIs.io includes API documentation and a getting-started guide.

API entry from apis.yml

apis.yml Raw ↑
aid: nixpacks:cli
name: Nixpacks CLI
description: The Nixpacks command-line interface is the primary interface for generating build plans and
  producing Docker images from application source. Core commands include `nixpacks plan` (emit the JSON
  build plan that would be used), `nixpacks build` (produce an OCI image via Docker BuildKit), and `nixpacks
  detect` (identify which providers match the source directory). The CLI accepts inline overrides for
  install, build, and start commands, Nix and apt packages, environment variables, the base build image,
  and a separate runtime image, and is distributed as a single Rust binary via Homebrew, install script,
  Docker image, and GitHub releases.
humanURL: https://nixpacks.com/docs/cli
tags:
- CLI
- Build
- Plan
- Detect
properties:
- type: Documentation
  url: https://nixpacks.com/docs/cli
- type: GettingStarted
  url: https://nixpacks.com/docs/getting-started
- type: SourceCode
  url: https://github.com/railwayapp/nixpacks
- type: Install
  url: https://nixpacks.com/docs/install