agent
Usage
prism create agent is used to create an agent YML configuration file.
Usage: prism create agent [OPTIONS]
Create an agent YML configuration file
Examples:
โข prism create agent --type docker
โข prism create agent --type ec2 --file ./agents/ec2.yml
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ * --type -t [docker|ec2] Agent type โ
โ [required] โ
โ --file -f TEXT File path for agent YML configuration. Default is ./agent.yml. โ
โ --log-level -l [info|warn|error|debug] Set the log level โ
โ --full-tb Show the full traceback when an error occurs โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ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