The bash module can be used to execute arbitrary bash commands in your automation’s runtime environment. The bash module is stateless, so if you need a stateful bash session, use the experiemental_bash module.

Example Usage

from blocks import bash

email = "user@example.com"
bash(f"git config --global user.email {email}")

Arguments

command
string
required
The bash command to execute.
suppress_exception
bool
If true, suppresses exceptions raised by the command.