Skip to content

Setup steps

Shell commands that prepare the sandbox before the agent starts each automation run.

Setup steps are shell commands that prepare the sandbox before the agent starts, such as installing dependencies. They run on every automation run in the workspace, after the repositories are cloned.

Under Agent, add one command per line:

Terminal window
npm ci
npx playwright install --with-deps chromium

Run your automation once and open the automation run to see the output of each command.

  • Commands run in order, in the primary repository.
  • Each line runs on its own, so a cd or a variable doesn’t carry over to the next line. Join commands with && when one depends on another.
  • If a command fails, setup stops and the automation run fails.
  • Blank lines are ignored.
  • Setup steps apply to every automation in the workspace. To start an automation run without them, set agent.skip_setup_commands: true in the automation. See Steps.
  • For preparation that only one automation needs, use a Bash step in that automation instead.