Skip to content

CLI

Catapult exposes the cata CLI through npx cata ... after installation.

Config loading

version and init work without a deploy config file.

All other commands load one of these files from the current directory by default:

  • deploy.ts
  • deploy.config.ts
  • deploy.js
  • deploy.config.js

Use --config or -c to point to a different file.

Global options

OptionDescription
--helpShow the help for the current command
--config <path>, -c <path>Load a specific deploy config file

Host-aware commands

These commands support --host <name> / -H <name>:

Without --host, Catapult uses the only configured host or prompts you to select one or more hosts when several are available.

Commands

CommandDescriptionNotes
versionShow the installed Catapult versionNo config required
initCreate a starter deploy config fileNo config required
deploy:setupCreate the remote directory structureAlias: setup
deployRun a deploymentAlias: dep
rollbackSwitch back to a previous release--interactive to choose the release
statusInspect the current state of one or more serversIncludes release and lock info
list:releasesList releases on the target serversMarks the current release
list:revisionsShow the last 10 logged revisionsReads .catapult/revisions.log
list:tasksList pipeline tasks and extra registered tasksConfig required
pipelineShow the current deployment pipeline orderConfig required
taskRun a registered task on the current releaseRequires an existing release
sshOpen an SSH shell in deployPathPrompts for one host if needed
runRun a remote shell command over SSHQuote the command string