agent
Usage
prism create agent is used to create an agent YML configuration file.
Usage: prism create agent [-h] --type TYPE [-f FILE] [--full-tb] [-l]
Create an agent YML configuration file
Options:
-h, --help show this help message and exit
Subcommand Options:
--type TYPE Agent type. Accepted types are `docker`
-f, --file FILE File path for agent YML configuration. Default is `./agent.yml`.
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`Here's what prism create agent does under the hood:
Checks whether the YML file specified with option
-f, --fileexists.If it doesn't, it creates a new YML file with the configuration for agent type
--type.If it does, it throws an error. Each agent must live in their own YML file.
Example
Here's what the output looks like in Terminal:
After this command executes, the following file will be added to your project directory.
Last updated