arc vault is encrypted secret storage. Secrets are organized as group/name, for example aws/access-key-id.
arc vault <subcommand> [options]Global flags (see Overview): --json, --view, --instance / -i (which local ARC instance; omit for default), and --home (instance root; to pick which instance, use --instance).
arc vault init
Initialize a new encrypted vault.
Usage
arc vault init [options]--vault-path <path>: path for the vault file (default~/.afs-config/vault/vault.enc).--pathstill works as a deprecated alias for--vault-path, but only on this one subcommand —arc vault get/set/list/deleteall accept--vault-pathtoo, but none of them ever accepted--pathas an alias for it
Example
$ arc vault init --vault-path ./demo-vault.enc
Vault initialized at ./demo-vault.enc
Reused the existing master key (AFS_VAULT_KEY or OS keychain) — keep that source available.The master key itself comes from AFS_VAULT_KEY or your OS keychain, not from this command, arc vault init just points a vault file at whichever key source is available.
arc vault set
Store a secret.
Usage
arc vault set <group> <name> <value> [options]--group <group>(required): secret group, e.g.aws,github--name <name>(required): secret name, e.g.token,access-key-id--value <value>(required): the secret value--vault-path <path>: path to the vault file, defaults to the standard location
Example
$ arc vault set demo api-key sk-example-12345 --vault-path ./demo-vault.enc
OK demo/api-keyarc vault get
Read a secret value.
arc vault get <group> <name> [--vault-path <path>]Example
$ arc vault get demo api-key --vault-path ./demo-vault.enc
sk-example-12345arc vault list
List secrets. Aliased as arc vault ls.
Usage
arc vault list [group] [options]--group <group>: secret group to list, omit for all groups--vault-path <path>: path to the vault file
Example
$ arc vault list --vault-path ./demo-vault.enc
demoarc vault delete
Delete a secret or an entire group. Aliased as arc vault rm.
Usage
arc vault delete <group> [name] [options]--group <group>(required): secret group--name <name>: secret name, omit to delete the entire group--vault-path <path>: path to the vault file
Example
$ arc vault delete demo api-key --vault-path ./demo-vault.enc
Deleted demo/api-key