Command Reference
Every vela command with its arguments and flags. Remote paths are written without a scheme; a trailing / denotes a directory. The global flags below work with every command.
Global flags
| Flag | Description |
|---|---|
--config string | Config file (env VELA_CONFIG; default $XDG_CONFIG_HOME/vela/config.toml) |
--profile string | Config profile to use (env VELA_PROFILE) |
--url string | Server URL, overriding the profile (env VELA_URL) |
--json | Machine-readable JSON output |
-q, --quiet | Print results only, no progress or hints |
-v, --verbose | Trace HTTP requests (without secrets) |
--no-color | Disable colors (also NO_COLOR) |
--timeout duration | Overall timeout for the command, e.g. 30s (default none) |
-h, --help | Help for any command |
Tag selection
Most file and sharing commands accept a tag selection instead of paths. Paths then narrow the search (recursively); without them, everything the key can see is searched. Commands that change more than metadata show the plan and ask unless -y is given; --dry-run only prints it. See Tag Selection.
| Flag | Description |
|---|---|
--by-tag stringArray | Select objects with this tag (repeatable; any of them matches) |
--by-tags stringArray | Select objects with all of these space-separated tags (repeatable; any list matches) |
Files
vela put
Upload files. The last argument is the remote destination when there are several: a directory (ending with /) or, for a single file, the exact remote path. With one argument the file goes to the root. Existing files are never overwritten without --force. With -r, directory contents land below the remote directory; symlinks are skipped, and so are hidden files unless --hidden. Use - to read stdin.
vela put LOCAL... [REMOTE] [flags]
| Flag | Description |
|---|---|
--public | Listed in the index and served by URL |
--unlisted | Served by URL but not listed (not access control) |
--private | Only via API key or signed link |
--title string | Title shown in the index |
--description string | Description shown in the index |
--tag stringArray | Tag (repeatable) |
--content-type string | MIME type (default: detected by the server) |
--disposition string | inline or attachment (download) |
--expires string | Delete automatically after a duration (7d) or at an RFC 3339 time |
--force | Overwrite existing files |
-r, --recursive | Upload directories recursively |
--hidden | Include hidden files (.name) with -r |
-j, --jobs int | Parallel uploads (default 4) |
--dry-run | Show what would be uploaded and where |
vela put report.pdf # -> report.pdf
vela put report.pdf docs/math/ # -> docs/math/report.pdf
vela put report.pdf docs/math/q1.pdf # -> docs/math/q1.pdf
vela put a.pdf b.pdf docs/ # several files into a directory
vela put -r ./site docs/site/ --public # a whole directory
pg_dump db | vela put - backups/db.sql --private --expires 7d
vela new
Create a new file from raw content: a string, stdin, or $VISUAL/$EDITOR (vi by default). An empty editor buffer cancels. Never overwrites; limited to VELA_MAX_CREATE.
vela new REMOTE [--content TEXT | --stdin | --edit] [flags]
| Flag | Description |
|---|---|
--content string | File content |
--stdin | Read the content from stdin |
--edit | Write the content in $VISUAL or $EDITOR |
--public, --unlisted, --private | Visibility, as for put |
--title, --description, --tag | Metadata, as for put |
--content-type, --disposition, --expires | As for put |
vela new notes/todo.md --content '# Todo'
echo hello | vela new hello.txt --stdin --public
vela new notes/idea.md --edit
vela get
Download a file (to the current directory by default, - for stdout), or with -r a whole directory. Existing local files are never overwritten without --force, not even one that appears while the download runs. Downloads go to a temporary file, are verified against the SHA-256 and then moved into place. With -r nothing is written outside LOCAL, even through symlinks. With a tag selection, REMOTE is the directory to search (/ for everything, the default) and every match is downloaded into LOCAL, keeping its path relative to REMOTE.
vela get REMOTE [LOCAL] [flags]
| Flag | Description |
|---|---|
--force | Overwrite existing local files |
-r, --recursive | Download a directory recursively |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
vela get docs/math/q1.pdf
vela get docs/math/q1.pdf - | less
vela get -r docs/math/ ./math
vela get --by-tag q1 docs/ ./q1
vela cat
Print a file to stdout.
vela cat REMOTE
vela ls
List a directory (the root by default). With -r, list every object below it. Naming a file instead of a directory shows that file. A tag selection searches everything below the directory, as -r does.
vela ls [DIR/] [flags]
| Flag | Description |
|---|---|
-l, --long | Long format: visibility, size, date, title |
-r, --recursive | List all objects below the directory |
--visibility strings | Only show these effective visibilities (public,unlisted,private) |
--type string | Only show files or symlinks (file, symlink) |
--broken | Only show broken symlinks |
--target string | Only show symlinks to this file |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
vela ls
vela ls docs/math/ -l
vela ls -r docs/ --visibility private
vela ls --by-tag q1 --by-tags 'math draft'
vela stat
Show all metadata of an object; for a symlink, also its target and effective visibility. With a tag selection, show every match; --json prints an array.
vela stat PATH [flags]
vela stat docs/a.pdf
vela stat --by-tag q1 docs/
vela mv
Rename or move. FROM ending with / moves a whole directory in one atomic step. TO ending with / moves a file into that directory under its own name. Public URLs change; signed links keep working. With a tag selection, mv [FROM...] TO/ moves every match into the directory TO, flat or with --save-structure; every conflict is reported before anything moves.
vela mv FROM TO [flags]
| Flag | Description |
|---|---|
--force | Overwrite existing destinations (they go to the trash) |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
--save-structure | With a tag selection, keep paths relative to FROM instead of moving flat |
-y, --yes | With a tag selection, act without asking |
--dry-run | With a tag selection, only show what would be done |
vela mv notes/a.md notes/b.md
vela mv report.pdf archive/
vela mv docs/math/ archive/math/
vela mv --by-tag q1 docs/ archive/q1/ --save-structure --dry-run
vela rm
Move files to the trash, from where vela trash restore brings them back until they are purged automatically. Directories (ending with /) need -r. --purge deletes for good (admin keys only). -r and --purge ask for confirmation; -y skips it and is required when stdin is not a terminal. Removing a symlink never touches its file; removing a file breaks the symlinks pointing at it. A tag selection always shows the objects and asks.
vela rm PATH... [flags]
| Flag | Description |
|---|---|
-r, --recursive | Delete directories recursively |
--purge | Delete permanently, bypassing the trash (admin) |
-y, --yes | Do not ask for confirmation |
--broken | Remove the broken symlinks in the given directories (with -r, also below them) |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
--dry-run | With a tag selection, only show what would be deleted |
vela rm notes/old.md
vela rm -r drafts/
vela rm --purge -y secret.pdf
vela rm --broken -r sorted/
vela rm --by-tag draft --dry-run
vela meta
Without flags, show the metadata of a file. With flags, change it — only if nobody modified the file in between (optimistic locking on the revision). With -r or a tag selection, change many objects: tags are edited per object, objects that already match are left alone, and --title and --content-type are refused.
vela meta PATH... [flags]
| Flag | Description |
|---|---|
--title string | Set the title ("" clears it) |
--description string | Set the description |
--tag stringArray | Add a tag (repeatable) |
--untag stringArray | Remove a tag (repeatable) |
--content-type string | Set the MIME type |
--disposition string | inline or attachment |
--expires string | Expire after a duration (7d), at an RFC 3339 time, or none |
-r, --recursive | Apply to several paths and everything below directories |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
vela meta report.pdf
vela meta report.pdf --title 'Q1 report' --tag q1 --untag draft
vela meta report.pdf --expires 7d
vela meta report.pdf --expires none --disposition attachment
vela meta -r photos/2026/ --tag trip --untag inbox
vela meta --by-tag inbox --tag sorted --untag inbox
vela vis
Change the visibility of files, or with -r of everything below directories (files and directories may be mixed). A path that matches nothing is an error. The change takes effect immediately.
vela vis PATH... public|unlisted|private [flags]
| Flag | Description |
|---|---|
-r, --recursive | Apply to everything below directories |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
vela vis report.pdf private
vela vis -r docs/math/ public
vela vis --by-tag handout public
vela trash
List, restore or purge deleted files. All three accept a tag selection, which matches the tags a file had when it was deleted; restore and purge then show the entries and ask (-y, --dry-run).
| Subcommand | Usage | Flags |
|---|---|---|
trash ls | vela trash ls [DIR/] — list the trash, newest first | --by-tag, --by-tags |
trash restore | vela trash restore ID|ORIGINAL_PATH — by ID, or the most recently deleted entry with that path. Signed links work again. | --to string restore to this path instead of the original--force overwrite a file at the target path (it goes to the trash)--by-tag, --by-tags restore the newest matching entry of every original path; --to is not allowed-y, --dry-run with a tag selection |
trash purge | vela trash purge [ID...] — permanently delete the given entries, or all (admin). Asks for confirmation. | --older-than string only entries deleted longer ago, e.g. 7d-y, --yes do not ask for confirmation--by-tag, --by-tags purge matching entries--dry-run with a tag selection |
vela trash restore notes/old.md
vela trash restore 01jb6z... --to notes/recovered.md
vela trash purge --older-than 7d -y
vela trash restore --by-tag q1 docs/
vela ln
Create symlinks: entries that serve the content of another file, referring to it by ID. Metadata is copied from the source once, at creation. With several sources, DEST must be a directory. -r links every file under a directory in one transaction. -f retargets an existing symlink in place or trashes an existing file. With a tag selection, ln [SCOPE...] DEST/ links every match into DEST, after showing the plan.
vela ln SOURCE... DEST [flags]
| Flag | Description |
|---|---|
-r, --recursive | Link every file under a directory |
-f, --force | Replace existing destinations (retarget symlinks, trash files) |
--no-copy-meta | Do not copy the source's metadata to new symlinks |
--copy-meta[=FIELDS] | Copy the source's metadata again, when retargeting with -f or to every symlink with --sync; with --sync, FIELDS limits it to title, description, tags, disposition, visibility (default all) |
--public, --unlisted, --private | Visibility of the symlink, as for put |
--title, --description, --disposition | Metadata, as for put |
--tag stringArray | Tag (repeatable; replaces the copied tags) |
--expires string | Delete the symlink automatically after a duration (7d) or at an RFC 3339 time |
--dry-run | Show what would be linked without changing anything |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
--save-structure | With a tag selection, keep paths relative to SCOPE instead of linking flat |
--skip | With a tag selection, leave conflicting objects out silently and link the rest |
--skip-explicitly | With a tag selection, leave conflicting objects out, report each, and link the rest |
--skip-symlinks | With a tag selection, leave symlinks out of the selection |
--sync | With a tag selection, link only files that have no symlink in DEST yet |
--prune | With --sync, trash symlinks in DEST to files in SCOPE that are no longer selected |
--prune-trashed | With --prune, also trash symlinks to files in the trash |
--strict | With --prune, treat the place of a pruned symlink as taken |
-y, --yes | With a tag selection, link without asking |
vela ln originals/a.jpg sorted/travel/a.jpg
vela ln originals/a.jpg originals/b.jpg sorted/travel/
vela ln -r originals/2026/ sorted/2026/
vela ln -f originals/new.pdf latest.pdf
vela ln --by-tag travel originals/ sorted/travel/ --skip-explicitly
vela ln --by-tag travel originals/ sorted/travel/ --save-structure --sync -y
vela ln --by-tag travel originals/ sorted/travel/ --sync --copy-meta=title,tags
vela dir
Manage directory policies independently of files. Prefixes accept an optional trailing slash; / is the root. Hidden directories are not access control.
| Subcommand | Usage | Flags |
|---|---|---|
dir ls | vela dir ls [PREFIX] — list explicit policies | --orphaned only rules with no live public objects below them |
dir show | vela dir show PREFIX — effective settings and what an anonymous visitor sees | — |
dir set | vela dir set PREFIX — patch an explicit policy | --index string on, off or inherit--noindex string crawler exclusion: on, off or inherit--hidden hide in the parent index--no-hidden show in the parent index--title string plain-text index title--description string plain-text index description |
dir hide | vela dir hide PREFIX — set hidden=true and index=on; descendants stay listed inside it | — |
dir private-root | vela dir private-root — disable the root index; public file URLs remain accessible | — |
dir rm | vela dir rm PREFIX — remove a policy and restore inheritance | -y, --yes confirm removal of the root policy |
Sharing
vela share
Create a signed link that gives access to one file, of any visibility, until it expires. Links cannot be permanent and survive renames. With a tag selection, create one link per match after showing them and asking.
vela share PATH [--ttl 2h] [--note TEXT] [--copy] [flags]
| Flag | Description |
|---|---|
--ttl string | Lifetime, e.g. 90m, 2h, 7d (default: server default, 24h) |
--note string | Free-text note shown in vela links ls |
--copy | Copy the URL to the clipboard |
--by-tag stringArray, --by-tags stringArray | Select objects by tag (see tag selection) |
-y, --yes | With a tag selection, act without asking |
--dry-run | With a tag selection, only show what would be done |
vela links
| Subcommand | Usage | Flags |
|---|---|---|
links ls | vela links ls [PATH] — list signed links (active ones by default) | --all include expired and revoked links--by-tag, --by-tags links of matching objects |
links revoke | vela links revoke ID... — revoke links; they stop working immediately | --by-tag, --by-tags revoke the active links of matching objects, after asking-y, --dry-run with a tag selection |
vela url
Print the public URL of an object or directory index. Private objects fail with a hint to use vela share. With a tag selection, print one URL per match; private matches are reported on stderr.
vela url PATH [flags]
vela open
Open the public URL of an object or directory in a browser (xdg-open, open or start). With a tag selection, open one tab per match, skipping private ones, after showing the URLs and asking (-y, --dry-run).
vela open PATH [flags]
Account
vela login
Ask for the server URL and an API key (input hidden), verify them against the server and save them in the config profile (default main; choose with --profile). The URL comes from --url or VELA_URL when set, otherwise it is asked for. Without a terminal, the key is read from the first line of stdin and the URL from --url.
vela login --url https://store.example.com
echo "$KEY" | vela login --url https://store.example.com --profile ci
vela logout
Remove a profile and its key from the config. Use --profile to pick which.
vela whoami
Show the key's name, ID, scope and prefix, and the server. With -v, also the masked key.
vela version
Show the CLI version and, when logged in, the server version and API version, warning about incompatibility.
vela completion
Generate the autocompletion script for bash, zsh, fish or powershell. Remote paths complete dynamically with a 1.5 s limit. See setup.
vela completion bash|zsh|fish|powershell
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | Other error |
2 | Usage error (flags, arguments, missing -y) |
3 | Not found |
4 | Conflict, already exists or precondition failed |
5 | Authentication or authorization (401/403) |
6 | Network error or server unavailable |
7 | Partial success in a batch operation |