← All commands

cgm

Store and load shell credentials securely

Security

Usage reference

Try an example

cgm env OPENAI_KEY

Syntax

cgm <command> [credential ...]
Availability
Available when secret-tool and a Secret Service provider are available
Dependencies
secret-tool and a Secret Service provider

Some subcommands change stored data or packages. Check the selected operation before running.

Adapts to terminal

Features & Examples

Examples appear only where they add useful detail.

set <name>

Securely store or replace one credential

list

List saved names without retrieving values

status

Show saved names and current-shell loaded state

check

Check Secret Service availability without retrieving values

env <name ...>

Load selected credentials into this shell

Example
cgm env OPENAI_KEY
env --all

Load every saved credential into this shell

unset <name ...>

Remove selected variables from this shell

delete <name ...>

Delete stored credentials and unset them here

help

Show this help text

Notes

  • Secrets are stored by Linux Secret Service through secret-tool.
  • cgm list and completion use credential names only; values stay hidden.
  • cgm env changes this shell and child processes started afterward.
  • Other open shells and already-running processes are not changed.
  • cgm delete returns nonzero if a current-shell variable cannot be unset.