Configuration
Siera allows you to add and choose environments through subcommands.
See the guide on how to set up Siera for more information on how to add and change environments relating to your agent configuration.
Siera supports using different environments. An environment consists of an environment name, an agent URL, an API key (optional) and a token (optional). A specific environment to use can be specified in a command using the --environment <ENVIRONMENT>
option.
In MS Windows Powershell you need to either run your command prompt application as administrator or allow your current user write access to C:\Program Files\Common Files\
in order to be able to write a config file to disk. This does not apply when using WSL.
Usage
Options
Alias | Flag | Description |
---|---|---|
|
| Print help information |
Subcommands
Command | Description |
---|---|
add | Add a new, or overwrite an existing, agent to your configuration file. |
view | Print your current configuration file. |
Add
Add a new, or overwrite an existing, agent to your configuration file.
Available flags
Alias | Flag | Description |
---|---|---|
| --api-key <API_KEY> | This API key will be passed to the agent. |
| --default | Add the default agent to the configuration (can be combined with |
|
| Specify your current environment. |
|
| Print help information. |
|
| Authentication token for a multitenancy agent. |
|
| The Agent agent URL that requests will be sent to. |
Example usage
Add a custom environment to your configuration file.
Siera uses the 'default' environment when no --environment
flag is given with commands. If you want to use another environment as your default, you can override your current default environment by specifying --environment=default
in the above command.
View
Print your current configuration file and its path.
Available flags
Alias | Flag | Description |
---|---|---|
|
| Print help information. |
Example usage
The command results in a print out of both the configuration path and the config.yaml
itself.
Last updated