forge vault
Manage project secrets.
Command
forge vault <subcommand> [args]
Arguments
None. Use a
<subcommand> — run forge --help for per-subcommand arguments.
Flags
None.
Subcommands
| Subcommand | Usage |
|---|---|
| |
| |
| |
| |
Examples
List secrets:
forge vault list prj_xxxxx
# → DATABASE_URL **** (updated 2026-07-01)
# → API_KEY **** (updated 2026-06-15)
Get a secret value:
forge vault get prj_xxxxx DATABASE_URL
Set a secret:
forge vault set prj_xxxxx MY_SECRET supersecret
Delete a secret:
forge vault delete prj_xxxxx MY_SECRET
Errors
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | Failed |
Pitfalls
- Values hidden in list —
shows secret names and metadata but never the values. Uselist
to retrieve a specific value.get - Overwrite —
overwrites any existing secret with the same name.set
See also
{auto-injected}
Tested against
{auto-injected}