Quickstart

In about five minutes you will run a local Vela store, connect the CLI to it, publish a file, share a private one with a signed link and recover something from the trash. Nothing here touches the network beyond localhost.

Start a local server

Pick whichever is more convenient. Both run velad in direct mode on http://127.0.0.1:8080 with the filesystem backend.

git clone https://github.com/x-chunk/vela.git
cd vela
make dev

make dev builds both binaries into ./bin, creates a fresh admin key, prints it and starts the server with its data in .dev-data/:

  Admin key: vela_7apjsr2yg5_Rpnr-qrO1g8AP3FPVFS9mVpIng-pO3Tf-eW2jnoAR0c
  Log in:    echo 'vela_7apjsr2yg5_…' | ./bin/vela login --url http://127.0.0.1:8080 --profile dev
  Index:     http://127.0.0.1:8080/

time=… level=INFO msg="velad started" version=v0.9.0 listen=127.0.0.1:8080 delivery=direct

Leave it running and open a second terminal in the same checkout. In the commands below, use ./bin/vela --profile dev wherever you see vela.

docker volume create vela-data
docker run -d --name vela-dev \
  -p 127.0.0.1:8080:8080 \
  -v vela-data:/data \
  -e VELA_PUBLIC_URL=http://127.0.0.1:8080 \
  xchunk/vela:0.9.0

# create an admin key; only the key itself goes to stdout
docker exec vela-dev velad key create --name laptop --scope admin

Keep the printed vela_… key for the next step — it is shown exactly once.

VELA_PUBLIC_URL is the only required setting. It is the origin used to build public URLs, so it must be the address your browser actually uses.

Log in

Save the server URL and the key in a CLI profile. The key is read without echo and verified against the server before anything is written:

$ vela login --url http://127.0.0.1:8080
API key:                       # typed without echo
Logged in to http://127.0.0.1:8080 as "laptop" (scope admin).
Profile "main" saved to /home/you/.config/vela/config.toml
$ vela whoami
Key:      laptop (7apjsr2yg5)
Scope:    admin
Prefix:   -
Server:   http://127.0.0.1:8080 (velad v0.9.0)
Profile:  main

With make dev, pipe the printed key instead: echo "$KEY" | ./bin/vela login --url http://127.0.0.1:8080 --profile dev. Without a terminal, vela login reads the key from the first line of stdin.

Publish a file

Create a small file straight from a string, and upload a local file into a directory:

$ vela new docs/hello.txt --content 'Hello from Vela' --public
http://127.0.0.1:8080/docs/hello.txt

$ echo '# Handbook' > handbook.md
$ vela put handbook.md docs/guides/ --public --title 'Team handbook' --tag intro
http://127.0.0.1:8080/docs/guides/handbook.md

Open http://127.0.0.1:8080/: the public index lists docs/, and inside it your files with their titles. Directories appear automatically while they contain at least one public file — there is no mkdir.

$ vela ls -r -l
public    15 B  2026-10-13 19:06  docs/hello.txt
public    11 B  2026-10-13 19:06  docs/guides/handbook.md  Team handbook

Try the visibility levels

$ vela put handbook.md shared/notes.md --unlisted
http://127.0.0.1:8080/shared/notes.md

$ vela put handbook.md private/report.md --private
private/report.md (private; share it with: vela share private/report.md)
  • shared/notes.md opens at its URL but is not in the index, and is marked noindex for search engines.
  • private/report.md answers 404 at its public URL — exactly like a file that does not exist.

When you pass no flag, new files get the server default, unlisted.

Share a private file

A signed link grants temporary access to one file, whatever its visibility:

$ vela share private/report.md --ttl 2h --note 'for the reviewer'
http://127.0.0.1:8080/s/01m4tsckgbtmyv138s621gqfrv/report.md?exp=1791907605&sig=Cya5rfe7e1leFOi6g6vzIQ
Expires 2026-10-13 21:06 (in 2h 0m). Revoke with: vela links revoke 01m4tsckgbtmyv138s621gqfrv

$ vela links ls
ID                          EXPIRES IN  PATH               NOTE
01m4tsckgbtmyv138s621gqfrv  2h 0m       private/report.md  for the reviewer

Add --copy to put the URL on your clipboard. Revoking the link makes it stop working immediately.

Move, delete and restore

$ vela mv docs/guides/ docs/handbook/
Moved 1 object(s): docs/guides/ -> docs/handbook/

$ vela rm docs/hello.txt
Moved docs/hello.txt to the trash (1 object(s))
Restore with: vela trash restore <path>

$ vela trash ls
ID                          DELETED           PURGED AT         SIZE  PATH
01m4tsckh38p9w9qrhawdsjxge  2026-10-13 19:06  2026-10-27 19:06  15 B  docs/hello.txt

$ vela trash restore docs/hello.txt
Restored docs/hello.txt

Moves are atomic and instant because only metadata changes. Signed links follow the object, so a link to docs/guides/handbook.md would still work after the move.

Script it

Every command accepts --json and returns documented exit codes, so the same CLI drives your automation:

$ vela --json stat docs/handbook/handbook.md | jq -r .sha256
90f8ec5669cd34183b9b0fdf8b94f5efb4c3672876330f4aa76088c2b4ad17be

$ vela stat nope.txt; echo "exit=$?"
vela: object not found: nope.txt
exit=3

Clean up

# Ctrl+C in the server terminal, then:
make clean            # removes ./bin, ./dist and .dev-data/
vela logout --profile dev
docker rm -f vela-dev
docker volume rm vela-data
vela logout

Next steps