build

Usage

prism build combines the functionality of prism agent apply and prism agent run. That is, it constructs your agent using the information in your agent's configuration YML and then immediately executes your project using your newly-built agent.

Usage: prism agent build [-h] -f FILE [--modules [X.py Y.py ...]] [--all-upstream] [--all-downstream] [--full-tb] [-l] [--vars [A=a B=b ...]] [--context '{}']

Build your agent using a configuration YML and then run your project on the newly-built agent

Options:
  -h, --help            show this help message and exit

Subcommand Options:
  -f, --file FILE       Path to agent configuration YML.

Run Command Options:
  --modules [X.py Y.py ...]
                        Path to script(s) that you want to run; if not specified, all modules in project are run
  --all-upstream        Run all modules upstream of --modules
  --all-downstream      Run all modules downstream of --modules

General Options:
  --full-tb             Display the full traceback for errors in the project; default is False
  -l, --log-level       Log level, must be one of `info`, `warn`, `error`, or `debug`. Default is `info`
  --vars [A=a B=b ...]  Prism variables as key-value pairs `key=value`. These overwrite any variable definitions in `prism_project.py`. All values are read as strings.
  --context '{}'        Prism variables as JSON. Cannot co-exist with --vars. These overwrite any variable definitions in `prism_project.py`.

Important: when developing, we recommend using prism agent build over individual calls to prism agent apply and prism agent run. This ensures that your agent always has your most up-to-date code.

Example

Here's what the output looks like in Terminal (using a Docker agent as an example):

Last updated