Set environment variables
set_env_varsSet environment variables on an app or agent, as name to value. A secret, the default, is encrypted and never shown again; pass secret false for plain configuration, which is readable from the dashboard. A value given here passes through this conversation, which is a real cost and the user's call: say that they could instead enter it on the dashboard, where it goes straight to Valet. Setting a name that exists replaces its value, which is why this is destructive. The process sees new values on its next start. The answer names the variables set and never their values. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The app's or agent's name. | |
| vars | Yes | Required. Variable name to value. | |
| secret | No | Whether to store the values as secrets, which are encrypted and never shown again. Omit for true; pass false for plain configuration, readable from the dashboard. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. |