Encrypted project environment commands
pinset env identity export
Export a keyring identity as plaintext, primarily for an explicitly protected CI secret.
View source on GitHub ↗| Field | Description |
|---|---|
| Purpose | Export a keyring identity as plaintext, primarily for an explicitly protected CI secret. |
| Syntax and arguments | pinset env identity export <id> --output <path> --allow-plaintext. |
| Modifies state | Yes. Creates a new current-user-only plaintext file and never overwrites. |
| Example | pinset env identity export 4c5652e4-... --output ./ci-identity.txt --allow-plaintext |
| JSON | No. |
| Key errors | Missing consent flag, unknown ID, keyring failure, existing output, or permission-hardening failure. |
Copy the file contents into the CI secret, then securely remove the file. Never commit it or pass the private identity as a command-line argument.
/en/docs/commands/env-identity-exportPinset 2.1