Skip to content

rollback

Restores the previous release by default. With interactive mode enabled, Catapult lets you choose the target release.

Usage

bash
npx cata rollback [options]

Options

OptionDescription
--host <name>, -H <name>Target a specific host
--interactive, -iPrompt for the target release instead of using the previous one
--config <path>, -c <path>Load a specific deploy config file

Automatic rollback

If a failure occurs after deploy:publish, an automatic rollback is triggered: the previous release is restored and PM2 is reloaded if present in the pipeline.

Examples

bash
npx cata rollback
npx cata rollback --interactive
npx cata rollback -i -H production

Output example