CLI

Environment Commands

Commands for managing environment variables and secrets in Agentuity projects

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

agentuity env set [key] [value] [flags]

Aliases

agentuity set (shortcut for agentuity env set) agentuity env add, agentuity env put

Flags

FlagDescription
--dir, -dThe directory to the project
--file, -fThe path to a file containing environment variables to set
--secret, -sForce the value(s) to be treated as a secret
--forceDon't prompt for confirmation

Examples

Set a single environment variable:

$ agentuity env set API_KEY your-api-key
 Environment variable saved

Set a secret:

$ agentuity env set --secret DB_PASSWORD your-password
 Secret saved

Set environment variables from a file:

$ agentuity env set --file .env
 Environment variables and secrets saved

All environment and secret values are encrypted at rest and in transit.

env list

Lists all environment variables and secrets for a project.

Usage

agentuity env list [flags]

Aliases

agentuity list (shortcut for agentuity env list) agentuity env ls, agentuity env show, agentuity env print

Flags

FlagDescription
--dir, -dThe directory to the project

Examples

$ agentuity env list
API_KEY=your-api-key
DB_PASSWORD=********

env get

Gets the value of an environment variable or secret.

Aliases

agentuity get (shortcut for agentuity env get)

Usage

agentuity env get [key] [flags]

Flags

FlagDescription
--dir, -dThe directory to the project

Examples

$ agentuity env get API_KEY
your-api-key

env delete

Deletes environment variables or secrets.

Usage

agentuity env delete [key...] [flags]

Aliases

agentuity delete (shortcut for agentuity env delete) agentuity env rm, agentuity env del

Flags

FlagDescription
--dir, -dThe directory to the project
--forceDon't prompt for confirmation

Examples

Delete a single environment variable:

$ agentuity env delete API_KEY
 Environment variable deleted

Delete multiple environment variables:

$ agentuity env delete API_KEY DB_PASSWORD
 Environment variables and secrets deleted

On this page