FishmemDocs

CLI reference

Every Fishmem command, grouped by task. Run any command with --help for all of its options.

fishmem <command> --help        # options for any command

Global options and environment

--home DIR / FISHMEM_HOMEVault directory (default: the OS config directory). Useful for separate vaults or tests.
FISHMEM_SERVERServer URL for login, run --token and syncing. Default https://fishmem.com.
FISHMEM_TOKENService token for fishmem run and the SDK; no vault needed.
FISHMEM_VAULTDefault vault when -p is left out.
.fishmem.json{"vault": "…"}, searched upward from the current directory. Optional "scan": {"ignore": [...]}.

-p (--vault) takes a vault name or id. Without it: FISHMEM_VAULT, then .fishmem.json; ls, get, set, rm, otp, versions and send secret then fall back to Personal, while run, export, token and webhook need a vault.

Vault and devices

Command
init [--name N] [--passphrase]Create a new vault on this computer
restoreSign in and open your account's vault with the recovery code from your Emergency Kit (FISHMEM_RECOVERY_CODE or a prompt)
link [--name N]Link to the vault on your phone (scan the QR code in the app)
approve CODE [-b BUCKET]Approve another device's link code, optionally for some buckets only
recovery-codeMake a new recovery code for your Emergency Kit (the old one stops working)
identityYour public identity
login / logout / whoamiAccount sign-in, and account and plan status
syncSync buckets and secrets with your other devices now
resetRemove the vault from this computer (other devices and the cloud are untouched)

Secrets

Command
secrets vaults [--json]Your vaults, Personal first
secrets create V / rename V NEW / delete VManage vaults (dev and prod are two vaults, e.g. shop and shop-prod; Personal can be renamed but not deleted, and fm://Personal/NAME still finds it)
secrets rotate-key -p VNew vault key, tokens re-wrapped
secrets ls -p V [--reveal]List items (values hidden by default; linked items show the other vaults they're in)
secrets get NAME [--field username|url|note]Print one value
secrets set NAME [VALUE] [--kind] [--username] [--url] [--note] [--totp]Add or change (hidden prompt or stdin without VALUE)
secrets rm NAME [--everywhere]Remove from this vault, or from every vault (30 days in the trash)
secrets link NAME -p V --to OTHERPut the same item in another vault too: one item, edited once
secrets duplicates [--merge N|--merge-all]Items with the same value saved separately; merge them into one linked item
secrets import FILE [--from …] [--dry-run] [--overwrite]Import .env, 1Password (.1pux, CSV), Bitwarden (JSON, CSV), Chrome, Edge, Firefox, Apple Passwords, LastPass, KeePass (.kdbx, CSV) or a Fishmem export
secrets export-all [--format fishmem|kdbx|csv|json] [-p V]… [-o FILE]Export every vault and item (encrypted by default)
secrets export -p V [--format dotenv|shell|json]Print a vault
secrets diff A B [--check] [--json]Compare two vaults by name, e.g. shop shop-prod
secrets versions / restore / trash / untrash / purgeItem history and trash
secrets history / rollback --version NWhole-vault versions on the server
secrets remind NAME --every 90d / secrets dueRotation reminders
secrets token create -p V --name N [--expires 90d] / ls / revokeService tokens (one vault each)
secrets webhook add URL -p V [--label L] / ls / rm / testWebhooks when a vault changes
secrets log VAccess log
secrets targets add NAME SPEC / ls / rm, secrets push [--dry-run] [--prune]Push to Vercel, Cloudflare, GitHub
secrets otp NAME [--set …|--qr IMAGE|--remove]2FA codes
secrets audit [--breaches]Weak, reused and breached passwords
secrets syncMerge secrets with other devices now
run [-p V] [--env-file F] [--only-refs] [--no-override] [--token T] [--cache PATH] -- CMDRun a command with secrets injected
gen [-l N] [-w N] [--pin N] [--check]Generate or rate a password
scan [PATHS] [--staged] [--install-hook] [--json]Look for keys in files; git pre-commit hook

SSH and browser

Command
ssh keygen NAME / ssh add NAME --file F / ssh ls / ssh pub NAMESSH keys in the vault
ssh agent [--daemon] [--socket PATH]Serve the vault's keys to ssh and git (macOS, Linux)
ssh git-setup NAME [--global]Sign git commits with a vault key
git-credential setup [--global] [--host H]Let git take HTTPS usernames and tokens from the vault (below)
browser install / uninstallConnect the browser extension to this computer's vault

HTTPS logins for git

fishmem git-credential setup --global                   # every repository, every host
fishmem git-credential setup --global --host github.com # only github.com

setup writes Fishmem into git's credential.helper (undo: git config --global --unset-all credential.helper). Like Git Credential Manager, it first clears helpers set elsewhere (osxkeychain, manager, store), so git asks only Fishmem; setup prints what it replaced. git then runs fishmem git-credential get whenever an HTTPS remote needs a password.

Save the login as a password item whose website is the host, with your username and a personal access token as the password:

fishmem secrets set GitHub --kind password --username octocat --url https://github.com
  • The host must match exactly; a login for the same site (example.com for git.example.com) is used when there is none for the host. The protocol must be https (http only for a login saved with http, or localhost), and the port must match.
  • A login whose website has a path, such as https://github.com/acme, is used only for repositories under it. git sends the path only with git config --global credential.useHttpPath true.
  • When several logins match, the one for the exact host and the newest wins; if git already knows the username (https://me@host/…), only logins with that username.
  • Unlocking works as for every other command that reads values: the OS keychain or your passphrase, and inside an AI agent (Claude Code, Codex, …) Fishmem refuses, so git falls back to asking you.
  • store and erase are ignored. git calls store after every successful push and erase when a server rejects a login; Fishmem doesn't let git write to or delete from your vault. Add and change logins in Fishmem, and when a token stops working, replace it there.
  • With the Mac app's vault (no vault of the CLI's own) this isn't available yet; use an SSH key or fishmem link.

Files

Command
bucket create NAME [--platform | --s3-endpoint … --s3-bucket … | --local DIR]Create a bucket
bucket ls / bucket rm NAME [--delete-data] / bucket migrate NAME …Manage buckets
add -b BUCKET PATHS [-r] [--album A] [-j 4] [--delete-originals]Encrypt files in
ls BUCKET / get BUCKET FILE [-o OUT] [--all] / mv / rmBrowse and decrypt
verify BUCKETCheck every file decrypts and is intact
share BUCKET --to EMAIL [--read-key …] [--snapshot FILE] / unshare BUCKET --user EMAIL / shares BUCKETRead-only sharing
inboxShares sent to you
pack -b BUCKET --out FILE PATHS / import FILEOffline .fmpack and .fmshare bundles

Sharing and people

Command
team invite / accept / confirm / members / remove / leaveFamily: invite people, confirm them, remove someone, or leave a family
team new-vault FAMILY NAME / team move FAMILY VAULTFamily shared vaults: create one, or move one of your vaults in
send secret NAME [--views N] [--expires 1d] [--password] / send textShare links
send ls / send revoke ID / send open URLManage and open links

Something missing or wrong? Tell us at support@fishmem.com