Multiple Commands

reading time 1 min

You may chain together multiple commands using built-in shell operators (&&, ||, ;, etc.). To use these operators, you must pass in your command in quotes with the --command flag.


Multiple Commands

The example below will always execute ./first-command, will execute ./second-command if the first command succeeds (exit code 0), and will always execute ./cleanup-command.

doppler run --command="./first-command && ./second-command; ./cleanup-command"