Skip to content

CLI commands

This page follows bb --help for bb 0.14.0. Run bb <command> --help for the full flag list of any command.

Every command accepts these.

FlagWhat it does
--jsonStructured JSON output.
--quietMinimal output, no progress or colors.
--no-colorDisable colored output.
--api <url>Override the API endpoint for this command.
CommandWhat it does
bb ls [path]List files. Names are decrypted locally.
bb mkdir <path>Create a folder. Mirrors mkdir -p with -p.
bb mv <src> <dst>Move or rename. Mirrors mv.
bb rm <path|id>...Move files or folders to the trash. Folders need -r. Reversible.
bb restore <name|id>Restore from the trash.
bb trash listBrowse the trash.
bb search <query>Find files by name. --regex for a case-insensitive regular expression.
bb push <path>Upload a file or folder. Encrypts on the fly.
bb pull <id|path>Download and decrypt. --zip downloads a whole folder as a zip.
bb share <path|id>Create an encrypted share link with expiry and an optional passphrase.
bb sync <dir> [remote]Sync a local folder with a vault path. Continuous by default.
bb webdavServe your vault over local WebDAV. See Mount as a drive.
bb whoamiSession, device, region and quota.
bb speedtestBenchmark network and crypto speed.
bb repairRepair files encrypted with the old binary-UUID key derivation, so they open in the web app.

bb upload and bb download are accepted as aliases of bb push and bb pull.

Terminal window
bb ls /Photos -l
bb mkdir -p /Photos/2026
bb push ./holiday --folder Photos
bb search "invoice" --folder /Documents
bb pull Photos --zip
bb rm -r old-project
bb trash list
bb restore old-project

bb push takes --replace (replace the existing file, which creates a new version) or --keep-both (upload with a numeric suffix).

Without -f/--force, bb pull never replaces an existing file. It asks on an interactive terminal and exits non-zero otherwise. Use -o <path> to save elsewhere.

bb rm --permanent and bb trash empty are irreversible and require a step-up password confirmation.

CommandWhat it does
bb sharesList active share links.
bb unshare [share-id]Revoke a share link. Omit the ID for an interactive picker.
bb request createCreate a file request and print its link. Anyone with the link can upload into your vault.
bb request listList your file requests with received counts and links.
bb request rmClose (default) or hard-delete a file request.
bb request sendUpload files to a request link. No account needed.

bb sync <dir> [remote] syncs and then keeps watching. Useful flags:

FlagWhat it does
--onceSync once and exit.
--dry-runShow what would change without changing anything.
--daemonRun as a background daemon with auto-start on login.
--statusShow all active sync sessions across devices.
--stop-session <name>Stop one sync session.
--stop-allStop all sync sessions on this device.
--deleteTrash remote files that no longer exist locally. Use with care.
--forceOverwrite conflicts with the local copy.

bb watch <path> watches a folder and auto-syncs changes to your vault.

CommandWhat it does
bb signupPrint the web signup URL and open it. The CLI signs in, it does not sign up.
bb loginSign in. --headless prints only a URL and a code.
bb logoutEnd the current session.
bb statusConnection status, session health, storage usage.
bb quotaStorage used, total and file count.
bb configShow current configuration with secrets masked.
bb account showProfile, plan, security, sessions, passkeys.
bb account updateChange your email address. A verification goes to the new inbox.
bb account billingOpen the billing portal.
bb account addonsView or purchase billing add-ons.
bb billing showPlan, storage usage, renewal date, pending changes.
bb billing usageStorage usage with a per-region breakdown.
bb billing invoicesList invoices.
bb billing portalOpen the billing portal.
bb billing addonsView or purchase billing add-ons.
bb 2fa statusShow whether TOTP two-factor authentication is enabled.
bb 2fa setupBegin setup. Returns a secret, a QR code and backup codes.
bb 2fa enableConfirm a TOTP code to enable 2FA after setup.
bb 2fa disableDisable 2FA. Requires a valid TOTP code.
bb sessions listList active sessions. The current one is marked *.
bb sessions revokeRevoke one session by ID or unique ID prefix.
bb sessions revoke-all-othersRevoke every session except this one.
bb passkey listList registered passkeys.
bb passkey addRegister a passkey. Opens the web app, because WebAuthn only runs in a browser.
bb passkey removeRemove a passkey by ID or unique ID prefix.
bb region listList storage locations by country, with your choice marked.
bb region getShow your current choice.
bb region setChoose where new uploads are stored.

bb region with no subcommand lists the options. A location that is not live yet is shown as coming soon and cannot be chosen.

bb completions <shell> prints a completion script. Shells: bash, elvish, fish, powershell, zsh.