fishmem <command> --help # options for any commandGlobal options and environment
--home DIR / FISHMEM_HOME | Vault directory (default: the OS config directory). Useful for separate vaults or tests. |
FISHMEM_SERVER | Server URL for login, run --token and syncing. Default https://fishmem.com. |
FISHMEM_TOKEN | Service token for fishmem run and the SDK; no vault needed. |
FISHMEM_VAULT | Default 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 |
restore | Sign 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-code | Make a new recovery code for your Emergency Kit (the old one stops working) |
identity | Your public identity |
login / logout / whoami | Account sign-in, and account and plan status |
sync | Sync buckets and secrets with your other devices now |
reset | Remove 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 V | Manage 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 V | New 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 OTHER | Put 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 / purge | Item history and trash |
secrets history / rollback --version N | Whole-vault versions on the server |
secrets remind NAME --every 90d / secrets due | Rotation reminders |
secrets token create -p V --name N [--expires 90d] / ls / revoke | Service tokens (one vault each) |
secrets webhook add URL -p V [--label L] / ls / rm / test | Webhooks when a vault changes |
secrets log V | Access 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 sync | Merge secrets with other devices now |
run [-p V] [--env-file F] [--only-refs] [--no-override] [--token T] [--cache PATH] -- CMD | Run 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 NAME | SSH 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 / uninstall | Connect 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.comsetup 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.comforgit.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 withgit 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.
storeanderaseare ignored. git callsstoreafter every successful push anderasewhen 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 / rm | Browse and decrypt |
verify BUCKET | Check every file decrypts and is intact |
share BUCKET --to EMAIL [--read-key …] [--snapshot FILE] / unshare BUCKET --user EMAIL / shares BUCKET | Read-only sharing |
inbox | Shares sent to you |
pack -b BUCKET --out FILE PATHS / import FILE | Offline .fmpack and .fmshare bundles |
Sharing and people
| Command | |
|---|---|
team invite / accept / confirm / members / remove / leave | Family: invite people, confirm them, remove someone, or leave a family |
team new-vault FAMILY NAME / team move FAMILY VAULT | Family shared vaults: create one, or move one of your vaults in |
send secret NAME [--views N] [--expires 1d] [--password] / send text | Share links |
send ls / send revoke ID / send open URL | Manage and open links |