Skip to content

run

Executes the given shell command on the selected hosts through SSH.

Usage

bash
npx cata run "<command>" [options]

Arguments

ArgumentDescription
<command>Shell command to run on the remote host

Options

OptionDescription
--host <name>, -H <name>Target a specific host
--config <path>, -c <path>Load a specific deploy config file

Examples

bash
npx cata run "pm2 list"
npx cata run "pm2 reload all" --host production
npx cata run "ls -lah current" -H staging

Output example