The vela CLI

vela manages files on a Vela store from your terminal or from scripts. It talks to the server only through the public HTTP API, prints friendly tables for humans and stable JSON for machines, and maps every failure to a documented exit code.

Command overview

GroupCommandsGuide
Filesput, new, get, cat, ls, stat, mv, rm, ln, meta, vis, trash, dirUploading, Browsing, Moving, Symlinks, Metadata, Tag Selection, Trash, Directories
Sharingshare, links, url, openSigned Links, URLs
Accountlogin, logout, whoami, version, completionProfiles & Login

Every flag of every command is listed in the Command Reference. vela help <command> and vela <command> --help show the same information offline.

Remote paths

Remote paths are written without a scheme or host: docs/math/q1.pdf. A leading slash is allowed and ignored, so /docs/a.pdf and docs/a.pdf are the same. A trailing slash means a directory, and several commands use it to decide what you mean:

CommandWithout trailing slashWith trailing slash
vela put f.pdf XUpload to exactly XUpload to X/f.pdf
vela mv A BRename file A to BA/: move a whole directory · B/: move into a directory
vela rm XDelete one fileDelete a directory (requires -r)
vela ls XShow that fileList the directory
vela ln S XCreate the symlink XCreate X/<name of S>

Paths are case-sensitive and must follow the path rules. Quote paths with spaces: vela get 'reports/Q1 summary.pdf'. Instead of paths, most commands can also select objects by tag with --by-tag and --by-tags; paths then only narrow the search.

Global flags

--profile NAMEenv VELA_PROFILE

Use a saved profile instead of the default one.

--url URLenv VELA_URL

Server URL, overriding the profile's URL.

--config PATHenv VELA_CONFIG

Config file location. Default $XDG_CONFIG_HOME/vela/config.toml (or the platform config directory).

--json

Machine-readable output on stdout: exactly one JSON document per invocation, errors included.

-q, --quiet

Print results only — no progress bars, hints or confirmations of success.

-v, --verbose

Trace HTTP requests on stderr, without secrets.

--no-colorenv NO_COLOR

Disable colors. Colors are only ever used on a terminal.

--timeout DURATIONdefault none

Overall timeout for the whole command, e.g. 30s or 5m (Go duration syntax). Expiry exits with code 6.

Output modes

Human output

By default vela prints aligned tables, human-readable sizes (KiB, MiB) and times in your local time zone. Visibility is colored on a terminal. Results go to stdout; progress bars, hints and errors go to stderr, so pipes stay clean:

$ vela ls -l docs/
          -     -                 handbook/ [hidden]
public    15 B  2026-10-13 19:06  welcome.txt
$ vela put big.iso isos/ 2>/dev/null
https://store.example.com/isos/big.iso

JSON output

With --json, stdout contains a single JSON document whose shape is the API's own DTO — an object, a listing, a link or an array of objects. The shape is part of the compatibility contract and does not change within API v1.

$ vela --json whoami
{
  "server_version": "v0.9.0",
  "api_version": 1,
  "public_url": "https://store.example.com",
  "key": { "id": "7apjsr2yg5", "name": "laptop", "scope": "admin", "prefix": "" },
  "limits": {
    "max_upload_bytes": 2147483648,
    "max_create_bytes": 1048576,
    "link_default_ttl": "24h",
    "link_max_ttl": "720h"
  },
  "features": { "symlinks": true }
}

Errors in JSON mode are written to stdout as an error document, with a non-zero exit code:

$ vela --json url private/report.md
{
  "error": {
    "code": "private",
    "message": "private/report.md is private and has no public URL",
    "details": {
      "hint": "create a temporary link with: vela share private/report.md"
    }
  }
}
$ echo $?
1

Partial failures of batch operations produce one document with code partial_failure, listing the failed items and the objects that succeeded, and exit with code 7.

Errors and hints

Error messages are short and, where there is an obvious fix, followed by a hint:

$ vela new docs/handbook/hello.md --content x
vela: object already exists: docs/handbook/hello.md
  hint: "vela new" never overwrites; use "vela put --force"

Destructive operations (rm -r, rm --purge, trash purge, removing the root directory policy) ask for confirmation. When stdin is not a terminal they refuse to guess and require -y:

$ vela rm -r docs/site/ < /dev/null
vela: Delete docs/site/ (recursively)?: confirmation required, but stdin is not a terminal; pass -y to confirm

Exit codes

Scripts can rely on these codes; changing one is a breaking change.

CodeMeaningTypical causes
0Success
1Other errorPrivate object has no URL, incompatible API, insecure config file, server-side 500
2Usage errorUnknown flag or command, wrong arguments, missing -y without a terminal
3Not foundnot_found
4Conflictalready_exists, path_conflict, conflict, precondition_failed
5Authentication / authorizationunauthorized (401), forbidden (403)
6Network / unavailableServer unreachable, unavailable (503), --timeout exceeded
7Partial successSome files of a batch put, get -r or similar failed
if ! vela stat "$path" -q >/dev/null 2>&1; then
  case $? in
    3) echo "not uploaded yet" ;;
    5) echo "check the key" ;;
    6) echo "server unreachable" ;;
  esac
fi

Retries and safety

Network errors, 429 and 5xx responses are retried up to three attempts in total with exponential backoff — but only for idempotent requests: reads, deletes, and uploads made conditional with If-None-Match: * or If-Match. Creating a file inline and moving files are never retried automatically.

Uploads without --force are sent as create-only. If a retried upload gets 409 already_exists because the first attempt actually succeeded, the CLI compares the existing object's SHA-256 with the local file and treats a match as success.

Tracing requests

-v prints one line per HTTP exchange to stderr. The API key is never written:

vela -v stat docs/handbook/hello.md

Shell completion

vela completion bash|zsh|fish|powershell prints a completion script; see Installation for setup. Besides commands and flags, remote paths complete dynamically: pressing Tab after vela get docs/ lists that directory on the server. Each lookup is bounded to 1.5 seconds; on a timeout or error you simply get no suggestions and no noise in the terminal.

Server compatibility

The CLI calls /api/v1/info during login, whoami and version and reports a clear error if the server speaks a different API major version. Within API v1, newer CLIs work with older servers: features that need newer endpoints — like vela dir or vela ln — say so, and existing commands fall back to their earlier behavior.

Requests carry User-Agent: vela-cli/<version> (<os>/<arch>).