# Agentuity CLI Cloud Secret Set

> Set a secret. Requires authentication. Use for Agentuity cloud platform operations

- Skill: `agentuity/agentuity-cli-cloud-secret-set` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentuity/agentuity-cli-cloud-secret-set`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentuity/agentuity-cli-cloud-secret-set/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: Apache-2.0
- Author: agentuity (https://skillmd.com/u/agentuity)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/agentuity/agentuity-cli-cloud-secret-set

---


# Cloud Secret Set

Set a secret

## Prerequisites

- Authenticated with `agentuity auth login`
- Project context required (run from project directory or use `--project-id`)

## Usage

```bash
agentuity cloud secret set <key> <value>
```

## Arguments

| Argument | Type | Required | Description |
|----------|------|----------|-------------|
| `<key>` | string | Yes | - |
| `<value>` | string | Yes | - |

## Examples

Set the DATABASE_URL environment secret:

```bash
bunx @agentuity/cli secret set DATABASE_URL "postgres://user:pass@host:5432/db"
```

Set the STRIPE_SECRET_KEY environment secret:

```bash
bunx @agentuity/cli secret set STRIPE_SECRET_KEY "sk_live_..."
```

## Output

Returns JSON object:

```json
{
  "success": "boolean",
  "key": "string",
  "path": "string"
}
```

| Field | Type | Description |
|-------|------|-------------|
| `success` | boolean | Whether the operation succeeded |
| `key` | string | Secret key name |
| `path` | string | Local file path where secret was saved |

