Docs / CLI Reference

CLI reference

Every command the fieldwick CLI exposes, grouped by what you are trying to do. Pass --help to any command for the full flag list and examples.

Auth

Create an account, authenticate, and sign out.

CommandFlagsWhat it does
signup <email>--team-name, --api, --forceCreate a new Fieldwick account and write credentials to disk. Pair with --force to overwrite an existing credentials file.
login--token, --browser, --paste, --no-browser, --api-baseAuthenticate with Fieldwick. Default flow opens a device-auth URL in the browser and polls for approval. Use --token for non-interactive CI environments. Use --browser if you are already signed in to the dashboard.
logout-Remove the stored bearer token and API base URL from disk. Does not revoke the token server-side.

Deploy

Initialize a project, trigger builds, and manage deployment history.

CommandFlagsWhat it does
init--dir, --force, --dry-runDetect your project language and framework, then write a fieldwick.json into the current directory. Use --dry-run to preview the output without writing. Use --force to overwrite an existing file.
deploy <service-id>--commit, --branch, --wait, --tail-logs, --timeout, --poll, --jsonTrigger a new deployment for a service. By default the command returns immediately after queuing the job. Add --wait to block until the deployment reaches a terminal state. --tail-logs streams build output alongside the status poll (implies --wait).
deployments list <service-id>--jsonList recent deployments for a service.
deployments show <deployment-id>--jsonShow details for a single deployment.
deployments inspect <deployment-id>--jsonVerbose deep-dive on a single deployment, including the full events timeline.
deployments rollback <deployment-id>--jsonRoll back a service to a previous deployment. The specified deployment ID becomes the active allocation.
deployments cancel <deployment-id>--jsonCancel an in-flight deployment. Leaves the prior version in place.
deployments wait <deployment-id>--timeout, --poll, --jsonBlock until a deployment reaches a terminal state. Exits 0 for success, 1 for failure, 124 for timeout.
deployments diff <id-1> <id-2>--jsonCompare two deployments side by side.

Inspect

Read service state, stream logs, and check platform health.

CommandFlagsWhat it does
services--project, --limit, --cursor, --jsonList all services the authenticated user can see. Filter to a project with --project.
services show <id>--jsonShow details for a single service.
services info <service-id>--jsonShow a rich summary for a service, including current metrics.
services logs <id>--tail, --since, --lines, --filter, --jsonFetch or stream runtime logs for a service. Default mode returns the last 100 lines and exits. Use --tail to stream new lines until Ctrl-C.
services scale <id>--replicas, --cpu, --mem, --jsonScale a service without triggering a new deploy. Adjusts replica count, CPU limit (mhz), or memory limit (mb) in place.
services restart <id-or-name>--jsonRestart a service in place without rebuilding the image. Useful for clearing runtime state.
services suspend <id-or-name>--jsonSuspend a service. Tears down allocations and stops billing. Use services unsuspend to restore.
services unsuspend <id-or-name>--jsonRestore a suspended service. Re-attaches billing and restarts the allocation.
teams-Manage Fieldwick teams. Parent command - see subcommands below.
teams list--cursor, --jsonList all teams the authenticated user belongs to.
teams show <id>--jsonShow details for a single team.
teams current-Print the active team that subsequent CLI commands will operate against.
status--jsonShow the Fieldwick platform health summary: API, builder, scheduler, and ingress status.

The CLI has additional commands beyond what is listed here: cron scheduling, domain management, environment variable management, and more. Run fieldwick --help to see every available command. The source is at github.com/mrdorianh/fieldwick.