Get Started

Quick start

Scaffold a config, check your tools, and deploy locally.
# 1. Scaffold a config in your project directory.
ant nest init --port 3000

init autodetects the project and prints what it wrote — roughly:

✔  Created /home/you/app/ant.yaml
APP     app        BUILD   dockerfile       RUN     container       FILE    Dockerfile

ℹ  Registered /home/you/app/ant.yaml for project discovery.
ℹ  Next: ant trail deploy local  (or edit ant.yaml to set env, secrets, and domains).
# 2. Check that Docker (and any builder CLI) is available.
ant nest tools
TOOL       STATUS    VERSION   PROVIDES                                    INSTALL
docker     ok        29.8.2    build and run containers                    —
caddy      ok        v2.11.4   serve domains (required on a remote nest)   —
nixpacks   warning   —         deploy.build: nixpacks                      curl -fsSL https://nixpacks.com/install.sh | bash
# 3. Build and run it locally.
ant trail deploy local
✔ Local up: app=app deployment=local container=app-local
ℹ Image: app:local  Release: 20261010T120000Z
ℹ Listening on http://localhost:3000 (container :3000)

ant nest init auto-detects the build type from the files in the directory:

FileDetected config
railpack.tomlbuild: railpack
nixpacks.tomlbuild: nixpacks
docker-compose.yml / compose.yamlbuild: none, run: compose
Dockerfilebuild: dockerfile
Procfilebuild: buildpacks

Override with --build, --run, --file, --port, --app, --group, --target-machine, --output, or --force. Or start from a catalog template with ant nest new <template> (see Templates).

What just happened

  1. ant nest init wrote ant.yaml describing how to build and run the project.
  2. ant haul built the image (also run for you by trail deploy).
  3. ant trail deploy local started the container. Domains are opt-in: add one to serve it on a hostname through Caddy (ant nest edit domain add).

The full lifecycle

The same flow exists on the CLI and in the dashboard. ant ui launches the console; everything after Launch below can also be done there. Remote steps (the server and edit-from-another-machine rows) need a Linux client; see the platform matrix.

StepCLIDashboard
Installrelease install, or clone + task build (see Installation)-
Launch the consoleant ui-
Create your accountant colony signup (or ant colony login --bundle)Settings → Ant account → Create account / Sign in from a bundle
Init a projectant nest init --port 3000Projects → Add project
Configure itant nest edit …Project → General / Environments / Domains / …
Add a serverant nest machines add prod --host ADDR --ssh-key …Nest → Add machine → Provision over SSH
Buildant haulProject → Build
Deployant trail deployProject → Deploy
Roll backant trail rollbackProject → Deployments
Collaborateant colony invite --machine prod / ant colony joinMachine → General → Invites

Your account is a portable NodeID: create it once, then ant colony export (the dashboard's Sign in from a bundle restores it on another machine). A signed-in account is required before provisioning a server: your NodeID seeds the machine's first owner.

If something goes wrong

SymptomLikely causeFix
Cannot connect to the Docker daemonDocker is not runningstart Docker, then re-run ant nest tools
deploy fails or the container exits immediatelythe host port is takenchange deploy.port in ant.yaml (or the deployment's port_offset) and deploy again; ant trail doctor reports port availability
a domain does not resolve, or the deploy warns Caddy is unreachableCaddy is missing or stoppedant nest tools caddy status, ant nest tools install caddy; ant trail deploy local --no-caddy skips routing for one run
ant: command not found after installthe install directory is not on PATHadd ~/.local/bin (the installer prints the exact line) and open a new shell
ant: BUILD FAILED is printedApache Ant, the Java tool, owns ant on this PATHcheck command -v ant; put this install first or use an absolute path

Open the host port the deploy printed, or find it with:

ant trail status
ant trail logs --tail 50

Command groups

Ant's commands are grouped by pillar:

GroupPurpose
ant haulBuild the image without running it
ant trailDeploy, manage, roll back, and clean up the app (local or remote)
ant nestMachine facts, tools, containers, volumes, scaffolding, templates, and groups
ant colonyYour Ant account and the users on remote machines
ant uiServe and manage the local web dashboard

Every command accepts --verbose (echo each child command) and -q/--quiet (suppress progress; only results print), plus --machine <id> to route machine-scoped commands at another machine. It is routing-only: local-only commands fail fast when it points at a remote, and commands that write a project's target use --target-machine. Commands that read ant.yaml also take --config <path>, and the data-reporting commands take --json. See the CLI reference.

Next

Copyright © 2026