Skip to content

CLI Command Reference

The Build CLI organises commands into groups based on the resource they manage. This page is a reference for all available commands. For installation and authentication, see Command Line Interface (CLI).

These options can be used with any command:

FlagDescription
-h, --helpDisplay help for the given command
-q, --quietDo not output any message
-V, --versionDisplay the CLI version
--ansi / --no-ansiForce (or disable) ANSI output
-n, --no-interactionDo not ask any interactive question
-v, -vv, -vvv, --verboseIncrease verbosity (normal, more verbose, debug)

To see help for any command, use the --help flag:

$ bld apps:create --help

Or use the help command:

$ bld help apps:create
CommandDescription
bld loginLog in to your Build account (browser-based OAuth)
bld oidc-loginLog in to your Build cluster via OIDC (SSO, cluster access)
bld whoami (me)Display the current logged-in user
bld logs (log)Display logs for an application
bld runRun a one-off command in a temporary dyno
bld listList available commands
bld helpDisplay help for a command
bld completionDump the shell completion script
CommandDescription
bld apps:create <name>Create a new application (-t team, -r region)
bld apps:list (apps)List the apps you have access to (-t team)
bld apps:info [app]Show details for a specific application
bld apps:stacks (stack)Show the current stack for an app
bld apps:stacks:set <stack>Set the build stack for an app (e.g. heroku-24)
CommandDescription
bld config:list (config)List all config vars for an app or environment
bld config:get <KEY...>Get one or more specific config vars
bld config:set <KEY=VALUE...>Set config vars; reads from STDIN when piped
bld config:unset <KEY...>Unset one or more config vars

config:list and config:get support -s for shell format (KEY=value) and -j for JSON. Both config:set and config:unset accept -e ENV-ID to target a pipeline environment instead of -a APP.

CommandDescription
bld buildpacks:list (buildpacks)List the buildpacks configured for an app, in order
bld buildpacks:add <buildpack>Append a buildpack (-i to insert at a position)
bld buildpacks:set <buildpack>Replace the first buildpack (or -i index)
bld buildpacks:remove [buildpack]Remove by name/URL or by -i index
bld buildpacks:clearRemove all buildpacks from an app
CommandDescription
bld ps:list (ps, ps:ls)List running processes and their state/size
bld ps:scale <TYPE=QTY[:SIZE]...>Scale process count and/or dyno size
bld ps:restart [process]Restart all processes, or a specific process type
bld ps:execExecute a command in a running dyno (-d dyno, -s status)
CommandDescription
bld domainsList all domains (platform + custom) for an app
bld domains:add <hostname>Add a custom domain (-w to wait for it to become active)
bld domains:info <hostname>Show detailed status for a domain
bld domains:update <hostname>Update a domain’s SSL certificate
bld domains:wait <hostname>Wait for a domain to finish provisioning
bld domains:remove <hostname>Remove a custom domain
bld domains:clearRemove all custom domains from an app
CommandDescription
bld namespaces:list (namespaces)List namespaces you’re a member of or own (-t team)
bld namespaces:create <name>Create a namespace (-t team, -r region, -z zone)
bld namespaces:info [namespace]Show details for a namespace
bld namespaces:delete <namespace>Delete a namespace

See Namespaces for a full walkthrough.

CommandDescription
bld teams:list (teams)List the teams you’re a member of or own
bld teams:info [team]Show details for a team
CommandDescription
bld pipelines:list (pipelines)List pipelines accessible to you (-t team)
bld pipelines:info <pipeline>Show detailed information for a pipeline
bld pipelines:diffCompare a source app’s latest release to its downstream app(s)
bld pipelines:promotePromote a source app’s latest release downstream (--to, --no-wait)
CommandDescription
bld addons:servicesList available add-on services
bld addons:plans <service>List plans for an add-on service
bld addons:create <service:plan>Provision an add-on for an app
bld addons:list (addons)List add-ons provisioned for an app or team
bld addons:info <addon>Show details about a provisioned add-on
bld addons:attach <addon>Attach an existing add-on to another app
bld addons:detach <attachment>Detach an add-on from an app
bld addons:destroy <addon>Permanently destroy an add-on

See build.io/add-ons for the full catalog and usage examples.