Quick start
# 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:
| File | Detected config |
|---|---|
railpack.toml | build: railpack |
nixpacks.toml | build: nixpacks |
docker-compose.yml / compose.yaml | build: none, run: compose |
Dockerfile | build: dockerfile |
Procfile | build: 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
ant nest initwroteant.yamldescribing how to build and run the project.ant haulbuilt the image (also run for you bytrail deploy).ant trail deploy localstarted 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.
| Step | CLI | Dashboard |
|---|---|---|
| Install | release install, or clone + task build (see Installation) | - |
| Launch the console | ant ui | - |
| Create your account | ant colony signup (or ant colony login --bundle) | Settings → Ant account → Create account / Sign in from a bundle |
| Init a project | ant nest init --port 3000 | Projects → Add project |
| Configure it | ant nest edit … | Project → General / Environments / Domains / … |
| Add a server | ant nest machines add prod --host ADDR --ssh-key … | Nest → Add machine → Provision over SSH |
| Build | ant haul | Project → Build |
| Deploy | ant trail deploy | Project → Deploy |
| Roll back | ant trail rollback | Project → Deployments |
| Collaborate | ant colony invite --machine prod / ant colony join | Machine → 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
| Symptom | Likely cause | Fix |
|---|---|---|
Cannot connect to the Docker daemon | Docker is not running | start Docker, then re-run ant nest tools |
| deploy fails or the container exits immediately | the host port is taken | change 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 unreachable | Caddy is missing or stopped | ant 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 install | the install directory is not on PATH | add ~/.local/bin (the installer prints the exact line) and open a new shell |
ant: BUILD FAILED is printed | Apache Ant, the Java tool, owns ant on this PATH | check 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:
| Group | Purpose |
|---|---|
ant haul | Build the image without running it |
ant trail | Deploy, manage, roll back, and clean up the app (local or remote) |
ant nest | Machine facts, tools, containers, volumes, scaffolding, templates, and groups |
ant colony | Your Ant account and the users on remote machines |
ant ui | Serve 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.