agentuity-cli-cloud-secret-import
Import secrets from a file to cloud and local .env.production. Requires authentication. Use for Agentuity cloud platform operations
When & Why to Use This Skill
The Agentuity Cloud Secret Import skill is a specialized developer tool designed to streamline secret management by importing environment variables from local files directly to the Agentuity cloud platform and local .env.production files. It simplifies the transition from development to production by ensuring that sensitive credentials and configurations are securely and accurately synchronized across environments.
Use Cases
- Production Environment Setup: Efficiently sync local secrets to the cloud to prepare a project for production deployment, ensuring all necessary environment variables are present.
- Secret Migration and Backup: Import secrets from backup files like .env.production.backup to restore or migrate configurations to new project instances on the Agentuity platform.
- DevOps Automation: Integrate secret importing into automated workflows to maintain consistency between local development environments and cloud-based production infrastructure.
| name | agentuity-cli-cloud-secret-import |
|---|---|
| description | Import secrets from a file to cloud and local .env.production. Requires authentication. Use for Agentuity cloud platform operations |
| version | "0.0.104" |
| license | Apache-2.0 |
| allowed-tools | "Bash(agentuity:*)" |
| argument-hint | "<file>" |
| command | "agentuity cloud secret import" |
| tags | "mutating creates-resource slow api-intensive requires-auth requires-project" |
Cloud Secret Import
Import secrets from a file to cloud and local .env.production
Prerequisites
- Authenticated with
agentuity auth login - Project context required (run from project directory or use
--project-id)
Usage
agentuity cloud secret import <file>
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<file> |
string | Yes | - |
Examples
Run .env.local command:
bunx @agentuity/cli secret import .env.local
Run .env.production.backup command:
bunx @agentuity/cli secret import .env.production.backup
Output
Returns JSON object:
{
"success": "boolean",
"imported": "number",
"skipped": "number",
"path": "string",
"file": "string"
}
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether import succeeded |
imported |
number | Number of items imported |
skipped |
number | Number of items skipped |
path |
string | Local file path where secrets were saved |
file |
string | Source file path |