Skip to content

FAQ

Frequently asked questions

Quick answers for the most common Catapult setup, CLI, and deployment questions.

What is the difference between the Guide, CLI, and API pages?

The Guide explains concepts and end-to-end workflows.

The CLI section documents each command on its own page.

The API Reference documents the helpers and primitives used to build custom tasks and recipes.

Where does Catapult look for the config file?

By default, Catapult looks in the current directory for:

  • deploy.ts
  • deploy.config.ts
  • deploy.js
  • deploy.config.js
When should I run `deploy:setup`?

Run `deploy:setup` before the first deployment on a server.

It creates the remote directory structure Catapult expects and runs setup hooks registered by recipes.

What is the difference between `deploy`, `rollback`, and `task`?

Use `deploy` for the full deployment pipeline.

Use `rollback` to switch back to an earlier release.

Use `task` to run one registered task on the current release without launching a full deployment.

Why does `task` require a current release?

Catapult runs the task against the current published release on the target host.

If no deployment has happened yet, there is no current release to execute the task against.

When should I use `--host` / `-H`?

Use `--host` when more than one host is configured and you want to skip the interactive selection prompt.

Example

npx cata deploy -H production
What happens when multiple hosts are configured?

For host-aware commands, Catapult prompts you to select one or more hosts when `--host` is not provided.

The `ssh` command prompts for a single host because it opens one interactive session.

How do I deploy a different branch for one run?

Use `--branch` or `-b` on `deploy`.

That overrides the branch from the config only for the current command.

Example

npx cata deploy --branch feature/my-feature
How do I use another config file?

Pass `--config` or `-c`.

This is useful when you keep separate configs for staging, production, or multiple projects.

Example

npx cata deploy -c deploy.staging.ts
How do I unlock a stuck deployment?

If a lock remains after an interrupted deployment, run the unlock task when it is available.

You can list available tasks first if you want to confirm the task name.

Unlock a host

npx cata task deploy:unlock -H production

List available tasks

npx cata list:tasks
What does `status` show?

`status` shows the current state of the selected host, including:

  • the active release
  • the healthcheck result when configured
  • the Node.js and package-manager versions
  • the latest revision metadata
  • the deployment lock status