ozvault home

CLI

Use the ozvault command-line tool

Upload, download, share, back up and restore encrypted files from a terminal or a script.

Reviewed Published by OzVault

Install and verify

#

The CLI is one JavaScript file for Node.js 22 or newer. Download it from ozvault.lol/cli, check its SHA-256 against the value on that page and run it with node. It is not on npm yet.

Shell
curl -fsSL https://ozvault.lol/cli/ozvault.mjs -o ozvault.mjs
node ozvault.mjs --help

Sign in and set your keys

#

ozvault login saves an API key in your user configuration folder, readable only by you. The vault key comes from OZVAULT_VAULT_KEY, --vault-key-file, or a file path saved with ozvault login --vault-key-file. ozvault keygen creates a new vault key.

TypeScript
ozvault login
ozvault keygen -o ~/.ozvault-key
ozvault login --vault-key-file ~/.ozvault-key

Everyday commands

#

Buckets can be given by name or ID. Most commands accept --json for scripts.

Common ozvault commands
CommandWhat it does
ozvault upload FILE --bucket B [--to PATH]Encrypt and upload
ozvault download ID -o FILEDownload, verify and decrypt
ozvault share ID --expires 7d --ask-passwordCreate a share link
ozvault get LINKDownload a share link
ozvault backup FILE --bucket B --name N --keep 14Rotating backup
ozvault restore-backup --bucket B --name NRestore the newest backup
ozvault init nextjsCreate a project from a template

Clear documentation is part of the product.