Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

NAME

sesam - Manage encrypted secrets in git repositories

SYNOPSIS

sesam

[--askpass]=[value]
[--clipboard-copy-cmd]=[value]
[--clipboard-paste-cmd]=[value]
[--cpuprofile]=[value]
[--help|-h]
[--identity|-i]=[value]
[--lock-timeout]=[value]
[--memprofile]=[value]
[--no-color]
[--quiet|-q]
[--sesam-dir|-r|--repo]=[value]
[--verbose|-v]
[--verify-mode]=[value]
[--version]

DESCRIPTION

See https://opensesam.org for the documentation.

If no sub-command is given, but the first argument is a path, we assume 'sesam show path/to/secret' as convenience.

Usage:

sesam [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]

GLOBAL OPTIONS

--askpass="": Askpass helper for encrypted identities [$SESAM_ASKPASS, $GIT_ASKPASS, $SSH_ASKPASS]

--clipboard-copy-cmd="": Command reading the secret on stdin, instead of the system clipboard [$SESAM_CLIPBOARD_COPY_CMD]

--clipboard-paste-cmd="": Command printing the clipboard, instead of the system clipboard [$SESAM_CLIPBOARD_PASTE_CMD]

--cpuprofile="": Write a CPU profile of this invocation to FILE (pprof format) [$SESAM_CPUPROFILE]

--help, -h: show help

--identity, -i="": Path to the age identity (can be given several times) [$SESAM_ID, $SESAM_IDENTITY]

--lock-timeout="": Repository lock wait timeout (e.g. 5s, 30s, 2m) [$SESAM_LOCK_TIMEOUT] (default: 5s)

--memprofile="": Write a heap profile at exit to FILE (pprof format) [$SESAM_MEMPROFILE]

--no-color: Disable color always (a non-empty $NO_COLOR does the same) [$SESAM_NO_COLOR]

--quiet, -q: Print less log output

--sesam-dir, -r, --repo="": Directory where .sesam lives [$SESAM_DIR] (default: ".")

--verbose, -v: Print more log output

--verify-mode="": Adjust how strong or weak the disk state is verified ('all', or 'no-disk') (default: "all")

--version: Print the version and exit

COMMANDS

init

Initialize sesam in the current repository

--help, -h: show help

--install-alias: Make it possible to call sesam as git sesam

--install-diff: Install diff support in repo git config

--install-hooks: Install pre-commit and post-checkout git hooks (needs git >= 2.54.0)

--install-merge: Install merge support in repo git config

--user, -u="": Initial admin user name (if not given, git config is used to guess)

uninstall

Removes git integration and optionally all of the sesam repo

--all: Also remove sesam.yml and .sesam/

--help, -h: show help

--no-ask: Do not ask for confirmation for --all

verify

Verify sesam signatures and encryption state

--all: Run all verifications

--config: Check sesam.yml does not declare a change that already arrived committed (not part of --all)

--forge-check: Verify the forge public keys did not change since adding users

--help, -h: show help

--integrity: Check file integrity on disk

--json: Print output as JSON

--key-reuse: Double-check that no key is re-used between users

--truncate: Verify the audit log was not truncated over history

clean

Remove revealed plaintext and other untracked files from the sesam directory

--aggressive: Also delete other untracked files (similar to git clean -fdx)

--dry-run: Do not actually delete, just print what would be deleted

--help, -h: show help

--unsealed: Also delete plaintext whose content is not sealed: edited since, or never

doctor

Check sesam installation for possible problems

--help, -h: show help

hook

Util to manage git hooks

--help, -h: show help

pre-commit

Execute the pre-commit hook - meant to be run by git!

--help, -h: show help

post-checkout

Execute the post-checkout hook - meant to be run by git!

--help, -h: show help

pre-merge-commit

Execute the pre-merge-commit hook - meant to be run by git!

--help, -h: show help

post-merge

Execute the post-merge hook - meant to be run by git!

--help, -h: show help

install

Make sure the git hooks are installed

--help, -h: show help

uninstall

Uninstall any hooks

--help, -h: show help

add

Add a secret file or directory at PATH

--group, -g="": Group assignment for the secret (repeatable) - 'admin' is implicit

--group-add, -G="": Add to the secret's existing groups instead of replacing them

--help, -h: show help

--nested: When the secret lives in a subdirectory, give that directory its own sesam.yml instead of adding it to the nearest existing one

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

rm

Remove a secret file or directory, plaintext included

--force, -f: Delete the plaintext even when it has unsealed changes

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

mv

Move a secret file or directory to a new name

--help, -h: show help

--nested: When the secret lives in a subdirectory, give that directory its own sesam.yml instead of adding it to the nearest existing one

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

edit

Open secret in $VISUAL or $EDITOR and immediately seal it afterwards

--editor="": Editor executable to use instead of $VISUAL or $EDITOR

--help, -h: show help

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

seal

Encrypt and sign changed secrets, and the given ones in any case

--clean: Delete revealed secret files after successful seal

--force-diverged: Also seal diverged secrets, keeping your plaintext over the object's changes

--force-stale: Also seal stale secrets, overwriting their newer object with your plaintext

--help, -h: show help

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

open, reveal

Decrypt all secrets available to the current user, and the given ones over your edits

--all, -a: Reveal every secret, overwriting plaintext you edited

--force-diverged: Also reveal diverged secrets, overwriting your edits with the object's version

--help, -h: show help

run

Run a command with secret files and dotenv variables

--all: Select all managed secrets accessible to the current identity

--env-file="": Load environment variables from a managed dotenv file (repeatable)

--env-pattern="": Additional regex matching sesam-relative dotenv paths; .env suffixes are always recognized (repeatable) [$SESAM_RUN_ENV_PATTERN]

--help, -h: show help

--secret="": Select path or VARIABLE=path; unnamed dotenv files are parsed, other files use SESAM_PATH names holding /dev/fd paths (repeatable)

status, s

Show overview over repo state (revealed, sealed, unmanaged, ...)

--all, -a: Also show in-sync secrets, unmanaged files and secrets you have no access to (hidden by default)

--diff, -d: Show the actual diff using git (extra args are passed to git)

--help, -h: show help

--json: Print output as JSON

--no-access: Also show secrets you have no access to (hidden by default, only counted)

--users, -u: Show users instead of groups

show

Show objects managed by sesam

--alsoclip, -C: Copy to clipboard and print to stdout

--clip, -c: Copy to clipboard instead of printing to stdout

--help, -h: show help

--ttl, -t="": How long to wait before clearing the clipboard (0 disables) (default: 45s)

--wait, -w: Wait for the password to be cleared instead of forking to the background

ls, list-secrets

List known secrets and metadata

--help, -h: show help

--json: Print output as JSON

rotate

Plan and execute secret rotation

--help, -h: show help

tell

Add a person to a group and re-encrypt files

--group, -g="": Group assignment (repeatable)

--group-add, -G="": Add to the user's existing groups instead of replacing them

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--recipient="": Recipient key spec (e.g. github:alice) - can be given several times

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": User name to add or update

kill

Remove a person from the sesam repo entirely

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": User name to remove

user, u

User management commands

--help, -h: show help

list, ls

List persons, groups, and access

--help, -h: show help

--json: Print output as JSON

change-groups

Change the groups a user is in

--group, -g="": Group assignment for the user (repeatable) - 'admin' is implicit

--group-add, -G="": Add to the user's existing groups instead of replacing them

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": Which user should be changed

add-recipient, ar

Add a recipient to an existing user

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--recipient="": Recipient key spec (e.g. github:alice) - can be given several times

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": Which user receives the new recipient

remove-recipient, rr

Remove a recipient from an existing user (may not be the last one)

--all-except, -a: Delete all except the recipients named by --recipient

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--recipient="": Recipient key spec (e.g. github:alice) - can be given several times

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": Which user loses the specified recipient

regen-sign-key, rsk

Regenerate the signing key of a specific user

--help, -h: show help

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

--user, -u="": Which user gets a new signing key

rename

Give a user a different name

--help, -h: show help

config

Config management commands

--help, -h: show help

apply

Apply config differences to audit log and metadata

--force, -f: Also apply changes that arrived already committed (see the docs on modified configs)

--help, -h: show help

--json: Print output as JSON

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

diff

Show the diff between config and actual state (extra args are passed to git)

--help, -h: show help

--json: Print output as JSON

--validate: Fail if 'sesam config apply --force' would refuse the config (dry run as the current user)

print

Print the whole config as one document, sub-configs merged (YAML, or JSON with --json)

--help, -h: show help

--json: Print output as JSON

reset

Derive config from audit log

--force, -f: Rewrite sesam.yml from scratch when it cannot be repaired in place, losing comments and descriptions

--help, -h: show help

--json: Print output as JSON

apply

alias for sesam config apply

--force, -f: Also apply changes that arrived already committed (see the docs on modified configs)

--help, -h: show help

--json: Print output as JSON

--no-seal: Do not run 'sesam seal' afterwards - useful when batching

--seal-all, --all: Seal every secret from its plaintext as it is, stale and diverged ones included

id

Identify the current user by age identity

--help, -h: show help

--json: Print output as JSON

keyring

Keyring utils

--help, -h: show help

clear

Clear cached passphrases from the keyring

--help, -h: show help

log

Show the audit log of secret changes

--full, -f: Show full timestamps and ids instead of shortened ones

--help, -h: show help

--json: Print output as JSON

help, h

Show the built-in manual, or the help of a command

Built 2026-11-17 16:38:48 • commit: cc3067b