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

FlagDescription
--config stringConfig file (env VELA_CONFIG; default $XDG_CONFIG_HOME/vela/config.toml)
--profile stringConfig profile to use (env VELA_PROFILE)
--url stringServer URL, overriding the profile (env VELA_URL)
--jsonMachine-readable JSON output
-q, --quietPrint results only, no progress or hints
-v, --verboseTrace HTTP requests (without secrets)
--no-colorDisable colors (also NO_COLOR)
--timeout durationOverall timeout for the command, e.g. 30s (default none)
-h, --helpHelp 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.

FlagDescription
--by-tag stringArraySelect objects with this tag (repeatable; any of them matches)
--by-tags stringArraySelect 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]
FlagDescription
--publicListed in the index and served by URL
--unlistedServed by URL but not listed (not access control)
--privateOnly via API key or signed link
--title stringTitle shown in the index
--description stringDescription shown in the index
--tag stringArrayTag (repeatable)
--content-type stringMIME type (default: detected by the server)
--disposition stringinline or attachment (download)
--expires stringDelete automatically after a duration (7d) or at an RFC 3339 time
--forceOverwrite existing files
-r, --recursiveUpload directories recursively
--hiddenInclude hidden files (.name) with -r
-j, --jobs intParallel uploads (default 4)
--dry-runShow 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]
FlagDescription
--content stringFile content
--stdinRead the content from stdin
--editWrite the content in $VISUAL or $EDITOR
--public, --unlisted, --privateVisibility, as for put
--title, --description, --tagMetadata, as for put
--content-type, --disposition, --expiresAs 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]
FlagDescription
--forceOverwrite existing local files
-r, --recursiveDownload a directory recursively
--by-tag stringArray, --by-tags stringArraySelect 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]
FlagDescription
-l, --longLong format: visibility, size, date, title
-r, --recursiveList all objects below the directory
--visibility stringsOnly show these effective visibilities (public,unlisted,private)
--type stringOnly show files or symlinks (file, symlink)
--brokenOnly show broken symlinks
--target stringOnly show symlinks to this file
--by-tag stringArray, --by-tags stringArraySelect 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]
FlagDescription
--forceOverwrite existing destinations (they go to the trash)
--by-tag stringArray, --by-tags stringArraySelect objects by tag (see tag selection)
--save-structureWith a tag selection, keep paths relative to FROM instead of moving flat
-y, --yesWith a tag selection, act without asking
--dry-runWith 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]
FlagDescription
-r, --recursiveDelete directories recursively
--purgeDelete permanently, bypassing the trash (admin)
-y, --yesDo not ask for confirmation
--brokenRemove the broken symlinks in the given directories (with -r, also below them)
--by-tag stringArray, --by-tags stringArraySelect objects by tag (see tag selection)
--dry-runWith 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]
FlagDescription
--title stringSet the title ("" clears it)
--description stringSet the description
--tag stringArrayAdd a tag (repeatable)
--untag stringArrayRemove a tag (repeatable)
--content-type stringSet the MIME type
--disposition stringinline or attachment
--expires stringExpire after a duration (7d), at an RFC 3339 time, or none
-r, --recursiveApply to several paths and everything below directories
--by-tag stringArray, --by-tags stringArraySelect 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]
FlagDescription
-r, --recursiveApply to everything below directories
--by-tag stringArray, --by-tags stringArraySelect 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).

SubcommandUsageFlags
trash lsvela trash ls [DIR/] — list the trash, newest first--by-tag, --by-tags
trash restorevela 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 purgevela 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]
FlagDescription
-r, --recursiveLink every file under a directory
-f, --forceReplace existing destinations (retarget symlinks, trash files)
--no-copy-metaDo 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, --privateVisibility of the symlink, as for put
--title, --description, --dispositionMetadata, as for put
--tag stringArrayTag (repeatable; replaces the copied tags)
--expires stringDelete the symlink automatically after a duration (7d) or at an RFC 3339 time
--dry-runShow what would be linked without changing anything
--by-tag stringArray, --by-tags stringArraySelect objects by tag (see tag selection)
--save-structureWith a tag selection, keep paths relative to SCOPE instead of linking flat
--skipWith a tag selection, leave conflicting objects out silently and link the rest
--skip-explicitlyWith a tag selection, leave conflicting objects out, report each, and link the rest
--skip-symlinksWith a tag selection, leave symlinks out of the selection
--syncWith a tag selection, link only files that have no symlink in DEST yet
--pruneWith --sync, trash symlinks in DEST to files in SCOPE that are no longer selected
--prune-trashedWith --prune, also trash symlinks to files in the trash
--strictWith --prune, treat the place of a pruned symlink as taken
-y, --yesWith 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.

SubcommandUsageFlags
dir lsvela dir ls [PREFIX] — list explicit policies--orphaned only rules with no live public objects below them
dir showvela dir show PREFIX — effective settings and what an anonymous visitor sees—
dir setvela 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 hidevela dir hide PREFIX — set hidden=true and index=on; descendants stay listed inside it—
dir private-rootvela dir private-root — disable the root index; public file URLs remain accessible—
dir rmvela 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]
FlagDescription
--ttl stringLifetime, e.g. 90m, 2h, 7d (default: server default, 24h)
--note stringFree-text note shown in vela links ls
--copyCopy the URL to the clipboard
--by-tag stringArray, --by-tags stringArraySelect objects by tag (see tag selection)
-y, --yesWith a tag selection, act without asking
--dry-runWith a tag selection, only show what would be done
SubcommandUsageFlags
links lsvela 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 revokevela 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

CodeMeaning
0Success
1Other error
2Usage error (flags, arguments, missing -y)
3Not found
4Conflict, already exists or precondition failed
5Authentication or authorization (401/403)
6Network error or server unavailable
7Partial success in a batch operation