Environment Commands
Commands for managing environment variables and secrets
The env
commands allow you to manage environment variables and secrets for your Agentuity projects.
env set
Sets environment variables or secrets for a project.
Usage
Aliases: put, add
Flags:
-d, --dir string
- The directory to the project to deploy (default ".")-f, --file string
- The path to a file containing environment variables to set--force
- Don't prompt for confirmation-h, --help
- help for set -s, --secret Force the value(s) to be treated as a secret
Examples
Set a single environment variable:
Set a secret:
Set environment variables from a file:
All environment and secret values are encrypted at rest and in transit.
Secrets are like passwords. They should be treated as such. Never share them with anyone. Never store them in a source code repository. Never store them in a file that is not encrypted.
env list
Lists all environment variables and secrets for a project.
Usage
Aliases: ls, show, print
Flags:
-d, --dir string
- The directory to the project to deploy (default ".")--format string
- The format to use for the output. Can be either 'text' or 'json' (default "text")-h, --help
- help for list
Examples
env get
Gets the value of an environment variable or secret.
Usage
Flags:
-d, --dir string
- The directory to the project to deploy (default ".")--format string
- The format to use for the output. Can be either 'text' or 'json' (default "text")-h, --help
- help for list
Examples
env delete
Deletes environment variables or secrets.
Usage
Aliases: rm, del
Flags:
-d, --dir string
- The directory to the project to deploy (default ".")--force
- Don't prompt for confirmation-h, --help
- help for delete
Examples
Delete a single environment variable:
Delete multiple environment variables:
You can also manage your environment variables and secrets in the Console.
Need Help?
Join our Community for assistance or just to hang with other humans building agents.
Send us an email at hi@agentuity.com if you'd like to get in touch.
Please Follow us on
If you haven't already, please Signup for your free account now and start building your first agent!