Vole docs Source

CLI reference#

The command line is a way to use Vole, not only a way to administer it: issues, comments, change requests, approvals, runs, releases, sites and secrets all have commands, so a repository can be worked on entirely from a clone without the browser.

It is also the admin interface, deliberately: if you can run Vole on the machine, you are the operator, and there is no separate admin panel to secure or keep in sync.

Run vole help for the built-in summary. If you make a usage mistake, Vole exits with code 129, just like Git.

This page is generated: vole help --markdown > docs/cli.md. Do not edit it by hand; the verify workflow fails when it differs from what the binary prints.

Options follow Git's conventions: --long value, --long=value, -o value, -ovalue, bundled short options such as -am, repeated options, and -- to end option parsing. Options may appear before or after arguments. -h, --help prints any command's usage, and vole help <command> is the same thing.

Working with the forge#

vole guide is the page to read first, and the page to put in a repository's AGENTS.md: the rules that hold in every repository on the instance. It is a command rather than a document so that the version in hand is the version described, however old the instance or the clone.

guide#

vole guide

Prints the rules that hold in every repository on the instance: identity and role, branch naming, how to name work, and what landing refuses. They are the forge's rules rather than one repository's, so they live in the binary that enforces them instead of being copied into AGENTS.md.

See Change requests.

Instance#

vole serve [--config <path>] [--log <level>] [--log-file <path>]

The listeners come from vole.toml: SSH for authenticated Git writes, HTTP for the web and anonymous clone. It runs in the foreground and stops on interrupt; under the Windows service manager it stops on the manager's request instead.

Option Used by Meaning
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
--log <level> — log level: debug, or the default info
--log-file <path> — append the log to this file instead of stderr, which a service needs

See Configuration, Deploy on Linux.

Server management#

vole admin is the single namespace for account, repository (repo), access (acl), and database (db) management. Without --remote, it changes the instance named by the local vole.toml. With --remote, it sends the same command over SSH and must be run by an instance admin. Database commands are local-only: they read and write files on the host, not over the admin channel. --remote accepts a Git remote name or an instance URL such as ssh://git@forge.example.com:2222; --json prints the server's JSON response instead of text.

vole admin [--remote <name|ssh-url>] [--config <path>] [--json] <command>...
Option Used by Meaning
--remote <name\|ssh-url> — run the command on the instance this remote names, as an instance admin
--config <path> — the vole.toml to read; local only, and refused with --remote
--json — print the server's JSON response instead of text (needs --remote)

See Accounts and access § Remote administration.

admin init#

vole admin init [--dir <path> | --config <path>]

--dir creates an instance in : the config at /vole.toml, the data beside it. --config prepares the instance an existing config names, which is how a package ships /etc/vole/vole.toml and lets init create the database and repository tree it points at. Give one or the other, not both. It is local-only: it is not available over --remote.

Option Used by Meaning
-d, --dir <path> — create the instance here: /vole.toml and the data beside it
--config <path> — prepare the instance an existing config names

See Quickstart, Install.

admin account#

vole admin account create [--key <file|->] [--role <role>] [--bot] <name>
vole admin account invite <name>
vole admin account role <name> <none|reader|contributor|runner|maintainer|admin>
vole admin account credentials <name>
vole admin account rm-credential <name> <credential-id>
vole admin account sessions <name>
vole admin account revoke-sessions [--all | <name>]
vole admin account add-key --key <file|-> <name>
vole admin account rm-key <name> <fingerprint>
vole admin account retire <name>
vole admin account grant-admin <name>
vole admin account show <name>
vole admin account list
vole admin account rename <name>

Omitting --key creates a browser-only account and prints a one-time enrollment link. --bot creates an automation account instead: it has no browser sign-in and cannot be an instance admin, so it must be created with a key. --role sets the account's instance-wide role; it applies to public repositories, while admin applies to every repository. account role changes it later.

invite — Prints a fresh one-time enrollment link for an existing account, which is how a passkey gets registered. Keep the link private: it is the one thing that grants browser access.

credentials — Lists the account's passkeys and when each was last used. A credential id is what rm-credential takes.

rm-credential — Revokes one passkey. Any prefix of the credential id is enough.

retire, rm, delete — Retiring is the closest thing to deleting an account: its keys stop working within five seconds, and the name is never reissued. rm and delete are accepted for the same command.

rename, display — Refused: an account name is permanent. It is the folder a contribute account's branches live under, so it is fixed at creation and never reissued.

Option Used by Meaning
-c, --config <path> all the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
-k, --key <file\|-> create, add-key the public key to use; - reads standard input
--role <role> create instance-wide role: none, reader, contributor, runner, maintainer, or admin
--bot create an automation account: no browser sign-in, and a key is required
--all revoke-sessions revoke every account's sessions, not just one account's

See Accounts and access.

admin repo#

vole admin repo create <name> [--description <text>] [--visibility private|public]
vole admin repo list
vole admin repo show <name>
vole admin repo rename <old> <new>
vole admin repo delete <name>

New repositories are private unless --visibility public is given. Access is granted afterwards with the acl commands; an instance admin can administer any repository.

delete — Deleting a repository removes its refs, its metadata branch, its LFS objects and its CI history. It is audited, and there is no undo.

Option Used by Meaning
-c, --config <path> all the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
--visibility <private\|public> create who may read the new repository; private unless this is public
-d, --description <text> create one line shown beside the repository

See Accounts and access.

admin acl#

vole admin acl show <repo>
vole admin acl set-role <repo> <account> <none|reader|contributor|runner|maintainer|admin>
vole admin acl set-default-role <repo> <none|reader|contributor|runner|maintainer|admin>
vole admin acl set-approvals <repo> <n>
vole admin acl checks enable <repo>
vole admin acl checks disable <repo>
vole admin acl require-issues enable <repo>
vole admin acl require-issues disable <repo>
vole admin acl protect list <repo>
vole admin acl protect add <repo> <ref-pattern>...
vole admin acl protect remove <repo> <ref-pattern>...
vole admin acl protect set <repo> <ref-pattern>...
vole admin acl protect clear <repo>

set-role and set-default-role accept none to remove access. protect set replaces the whole list; the add and remove forms change one entry at a time.

A protected ref pattern is either an exact ref (refs/heads/main) or a ref prefix ending in one * (refs/heads/release/*), the two shapes the hook understands. protect add and protect set refuse anything else, because a pattern that can never match would leave the branch open while acl show listed it as protected.

set-approvals — How many approvals landing a change request needs.

require-issues enable — Makes a linked issue mandatory when a new change request is opened.

Option Used by Meaning
-c, --config <path> all the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml

See Accounts and access, Runners.

admin gc#

vole admin gc [--dry-run] [--grace <duration>]

Marks LFS objects reachable from any ref in any repository, and from archived CI logs and published artifacts in the run queue, then removes the rest. Objects younger than --grace (default 1h) are kept: an upload that has not been pushed yet is not garbage.

An object is served through a per-repository namespace, so a sweep also reconciles those links: it links what a repository reaches and unlinks what it no longer does. That is the repair path for a store whose links are missing — vole admin gc restores them, and the server does the same once on first boot after an upgrade.

Local-only: it is not available over --remote.

Option Used by Meaning
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
-n, --dry-run — report what would be removed, and remove nothing
-g, --grace <duration> — keep objects younger than this (default 1h)

See LFS and file locking.

admin index#

vole admin index rebuild

Rebuilds the index every search and listing reads. It is derived, so this repairs it rather than losing anything. Local-only: it is not available over --remote.

Option Used by Meaning
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml

admin db#

vole admin db list
vole admin db check
vole admin db backup <dir>

list — Prints the instance database and the derived index, and what each is for. It reads the configuration only: no database has to exist, and nothing is opened.

check — Runs SQLite's quick integrity check on each existing database and reports the first problem. The instance database holds the sealed secret ciphertext; the key is not needed to check the pages.

backup — Writes a consistent copy of the authoritative instance database into

with VACUUM INTO, which takes a read transaction and cannot lose the rows still sitting in a -wal file. The derived index is skipped: it is rebuilt from the repositories with vole admin index rebuild.

backup — The copy is created at 0600. secrets.key is not copied: store it separately, because a backup that holds both is a backup of plaintext.

backup — Local-only: it is not available over --remote.

Option Used by Meaning
-c, --config <path> all the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml

See Backup and restore § Back up an instance.

service#

vole service install [--config <path>] [--account <account>] [--log-file <path>]
vole service uninstall
vole service start
vole service stop
vole service status

install — Registers Vole with the Windows service manager to run this binary as serve --config <path> --log-file <path>, and prepares what the service account needs: the data directory, the log directory, and read access to the configuration file. The service starts automatically, after a short delay, and is restarted if it fails. It needs an elevated prompt. --config defaults to %ProgramData%\Vole\vole.toml, which is written with a documented default when it does not exist; the configuration is not part of any package, so uninstalling leaves it and the data it names. The instance's database and instance repository are created when they are missing, as the Linux package's post-install step does; no account is created. data_dir must be an absolute path: a service starts in %SystemRoot%\System32, not in the directory it was installed from.

uninstall — Stops the service if it is running and removes it. The data directory and the configuration file are left in place.

start — Starts the installed service and waits until it reports running.

stop — Stops the service and waits until it reports stopped. A CI job that is draining is allowed to finish first.

status — Prints the state the service manager reports, and the command line it runs.

Option Used by Meaning
-c, --config <path> install the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
--account <account> install the account the service runs as (default NT SERVICE\Vole)
--log-file <path> install where the service appends its log (default /logs/serve.log)

See Deploy on Windows, Install on Windows.

whoami#

vole whoami [--remote <name>] [--role]

Asks the instance which account the SSH key you push with belongs to. That mapping exists only on the instance; git config holds a name somebody typed.

With --role, prints the effective role that account holds on the repository named by the remote, instead of the account name.

Option Used by Meaning
--remote <name> — the remote naming the instance (name or ssh:// URL); default origin
--role — print the effective role on this repository instead of the name

See Accounts and access.

Issues#

vole issue new --title <title> [-m <text> | -F <file>] [-l <label>]... [-a <account>]...
vole issue comment <id> [-m <text> | -F <file>] [--reply-to <comment-id>]
vole issue edit-comment <id> <comment-id> [-m <text> | -F <file>]
vole issue rm-comment <id> <comment-id>
vole issue edit <id> [--title <title>] [-m <text> | -F <file>] [-l <label>]... [-a <account>]... [--unassign <account>]...
vole issue assign <id> <account>...
vole issue unassign <id> <account>...
vole issue close <id>
vole issue reopen <id>
vole issue list [--state <state>] [-l <label>]... [--assignee <account>]... [--format <fmt>]
vole issue show <id>

Multiple -l, -a and --assignee options are allowed. A comment id takes a prefix. An issue id takes a prefix or the #42 number: numbers are one sequence shared with change requests, oldest first.

Deleting a comment leaves the text in git; only its author (or an admin, audited) can edit or delete it.

list — --format understands %(number), %(id), %(shortid), %(state), %(author), %(title), %(labels), %(assignees) and %(created).

Option Used by Meaning
-t, --title <title> new, edit the issue title
-m, --message <text> new, comment, edit-comment, edit the body text; an alternative to -F
-F, --file <file\|-> new, comment, edit-comment, edit read the body from a file; - reads standard input
--reply-to <comment-id> comment the comment this one replies to
-l, --label <label> new, edit, list a label to add; repeatable
-a, --assign <account> new, edit an account to assign; repeatable
--unassign <account> edit an account to remove from the assignees; repeatable
--assignee <account> list only issues assigned to this account; repeatable
--state <state> list open, closed, or all (default open)
--remote <name> all the remote naming the instance (default origin)
--format <fmt> list a template such as '%(number) %(title)'
--no-push new, comment, edit-comment, rm-comment, edit, assign, unassign, close, reopen commit locally without pushing

See Issues.

Change requests#

vole change new --title <title> --base <branch> [--head <rev>] [--closes <issue>]... [-m <text> | -F <file>]
vole change list [--state <state>] [--format <fmt>]
vole change show <id>
vole change comment <id> [-m <text> | -F <file>] [--path <file> --line <n> [--side new|old]] [--reply-to <comment-id>]
vole change edit-comment <id> <comment-id> [-m <text> | -F <file>]
vole change rm-comment <id> <comment-id>
vole change update <id> [--title <title>] [-m <text> | -F <file>] [--base <branch>] [--head <rev>] [--closes <issue>]... [--no-closes]
vole change approve <id> [--as <account>]
vole change merge <id>
vole change close <id>
vole change reopen <id>

change also accepts request, requests and cr as compatibility aliases. An id takes a prefix or the #42 number: numbers are one sequence shared with issues, oldest first.

A request opened with --head <branch> follows that branch: a later push moves its head and invalidates the old approvals and checks. --head <commit> (or a tag) pins the request to that commit instead.

--no-push commits locally without pushing. A comment is yours to edit or delete; an admin may repair somebody else's, audited.

list — --format json prints one JSON object per request; any other value is used as a template.

show — Prints the combined result and whether the landing is ready.

update — --base retargets an open request, which is how a stacked request moves onto main after the branch below it lands; approvals named the old base and stop counting. --closes replaces the list, and --no-closes clears it. --title and -m/-F correct the prose: an approval names the base and head, so the edit leaves both and any approval alone, including on a closed or merged request.

approve — An approval is only accepted from the account it names, and never by the author's own account.

merge — Lands the request. When the combined result is still building it says the request will merge when the result passes, which is the same merge-when-ready a click on the page arms.

Option Used by Meaning
-t, --title <title> new, update the request title
-b, --base <branch> new, update the branch the change lands on
-H, --head <rev> new, update the branch that follows the request, or a commit or tag to pin it to
--closes <issue> new, update an issue the request closes; repeatable, and comma lists are accepted
-m, --message <text> new, comment, edit-comment, update the text; an alternative to -F
-F, --file <file\|-> new, comment, edit-comment, update read the text from a file; - reads standard input
--as <account> approve the account an approval is made for
--path <file> comment the file a review comment is on
--line <n> comment the line the comment is on; needs --path
--side <side> comment new or old side of the diff (default new)
--reply-to <comment-id> comment the comment this one replies to
--state <state> list open, closed, or all (default open)
--remote <name> all the remote naming the instance (default origin)
--format <fmt> list a template, or json
--no-push new, comment, edit-comment, rm-comment, update, approve, close, reopen commit locally without pushing
--no-closes update clear the issues the request closes

See Change requests.

Releases#

vole release create <tag> (-m <text> | -F <file|->)
vole release attach <tag> <file-or-directory>... [--remote <name>]
vole release remove <tag> <path>... [--remote <name>]
vole release channel set <name> <tag> (-m <text> | -F <file|->) [--remote <name>]
vole release channel list [--remote <name>]
vole release channel clear <name> [--remote <name>]

A release is an annotated tag: its message is the release notes and its tree is the source tarball, so both travel with any clone.

create — Writes the annotated tag in the current repository; push it with git push --follow-tags. The notes and attached files stay editable afterwards unless a channel targets the release.

attach — Uploads each file, or each regular file under a directory, over SSH and records it as a path under releases/<tag>/ on the metadata branch. A directory keeps its relative paths, so a package layout survives. Nothing is published until the pointer is pushed, so attach after git push --follow-tags, not before.

remove — Removes attached files from a release by deleting their pointers on the metadata branch. The bytes become collectable after the garbage collector's grace period; the release notes and source are untouched.

channel set — Points a mutable channel at an annotated tag. The channel name stays; the release it names is frozen until the channel points at another one.

channel list — Prints every channel and whether its target is still an annotated tag with the recorded object id.

channel clear — Removes the pointer. The release and its files stay; only the stable name stops resolving.

Option Used by Meaning
-m, --message <text> create, channel set the release notes or channel description
-F, --file <file\|-> create, channel set read the release notes or channel description from a file; - reads standard input
--remote <name> attach, remove, channel set, channel list, channel clear the remote naming the instance (default origin)

See Releases.

Secrets#

vole secret list <repository> [--remote <name|url>]
vole secret get <repository> <name> [--remote <name|url>]
vole secret set <repository> <name> [--from-file <path>] [--remote <name|url>]
vole secret rm <repository> <name> [--remote <name|url>]

A secret is a value this repository keeps out of its code: a deploy key, a registry token, a staging password. It is stored encrypted on the instance, and its name is upper-case letters, digits and _, so it can be read as an environment variable.

These commands run against the instance the remote points at (default: origin). Reading and writing both need the maintainer role in that repository, and every read and change is recorded in data/audit.log.

A value is limited to 128 KiB, the most one environment variable can carry. The same values appear on the repository's Settings tab, which is write-only.

list — Shows names, versions and read times. It never shows a value.

get — Writes the value and nothing else, so it can be redirected to a file.

set — Takes the value from standard input, or from --from-file; --from-file - reads standard input. One trailing newline is removed from a piped value, so echo token | vole secret set … stores the token. The value never comes from an argument, which would be visible to every process on the host and would land in shell history.

Option Used by Meaning
--remote <name\|url> all the remote naming the instance (default origin)
-F, --from-file <path\|-> set read the value from a file; - reads standard input

See Workflows § Repository secrets.

Pages#

vole pages deploy [<dir>] [--branch <name>] [-m <text> | -F <file>] [--dry-run] [--remote <name>]
vole pages status [--branch <name>] [--remote <name>]
vole pages unpublish [--branch <name>] [--remote <name>]

The site is served at ., which the instance configures; if the operator changed pages_ref, pass the same branch name here.

deploy — Replaces the branch's tree with

(default the current directory), so a page deleted from the build stops being served.

status, show — Reports what is published on the branch.

unpublish, rm, remove — Deletes the branch, so the site answers 404. rm and remove are accepted for the same command.

Option Used by Meaning
--branch <name> all the branch that holds the site (default pages, or the instance's pages_ref)
--remote <name> all the remote naming the instance (default origin)
-m, --message <text> deploy commit message for the publish
-F, --file <file> deploy read the commit message from a file
--dry-run deploy report what deploy would publish, and publish nothing

See Sites.

CI#

runner#

vole runner --remote ssh://git@host[:port] [--once] [--jobs <n>] [--dir <path>] [--repos <name>]... [--label <name>]... [--container-runtime <name>] [--container-network <mode>] [--container-pull <mode>] [--container-user <uid:gid>] [--container-userns <mode>] [--container-memory <size>] [--container-cpus <n>] [--container-pids <n>] [--cache-size <size>] [--git-cache-size <size>] [--image-max-age <duration>] [--no-cache] [--known-hosts <path> | --insecure-host-key]

Leases CI jobs from a Vole instance and runs them. Authentication is the SSH key you would push with, so there is no token to configure. A runner may only run jobs for repositories where its account holds the runner role (maintainers and admins are implicit): running a job executes that repository's code, which is a bigger power than writing to it.

Every finished attempt commits a record to the repository's metadata branch, together with the artifacts the build published, in one push: the runner is the party that did the work, so the runner is the party that states the result. The push authenticates with the same key, and pre-receive checks the role.

Host key. A runner executes repository code, so the instance it trusts is a security boundary. The SSH host key is verified against your known_hosts, and an unknown or changed host is refused. Populate the file with ssh-keyscan -p <port> <host> >> ~/.ssh/known_hosts.

Container execution. A runner always needs an OCI runtime. Each job names its image in the workflow, and the runner starts one container per job and removes it afterward; the runner's key and trusted checkout stay outside the container. The image must have /bin/sh and a POSIX sleep, because Vole runs shell steps and keeps the container alive between them. A workflow image-file definition is built locally before the job starts and cached by definition digest; the build uses the runtime's own network, not --container-network. The runtime is checked at startup with <runtime> info, and the runner refuses to serve when that fails.

Job cache. Each job gets a writable directory at /cache, kept under --dir/cache and reused by later jobs of the same repository and image. The runner mounts it and sets no variables: a job opts in by pointing its own at /cache, in the image's env: (for example GOCACHE=/cache/go-build) or in the step. Namespaces are per repository, and contributor branches get their own, so one branch cannot seed another's cache.

Saved checkouts. The first job for a repository clones it once into --dir and keeps that clone, so a later job clones from disk and only commits it does not have cross the network. The clone is never mounted into a job: the workflow's checkout is a copy with its own .git, so a hook or a changed config dies with the job.

Option Used by Meaning
-r, --remote <url> — the instance to lease jobs from, as ssh://git@host:port
--dir <path> — where checkouts and the cache live (default: the user cache directory, under vole-runner)
--repos <name> — only take jobs for this repository; repeatable, and it cannot grant access
--label <name> — a label this machine carries, such as linux or arm64; repeatable
--once — run one job, then exit
--jobs <n> — how many jobs to run at once (default 1)
--container-runtime <name> — docker (default), podman, or nerdctl
--container-network <mode> — none (default) or bridge: the most this machine offers a job
--container-pull <mode> — missing (default), always, or never
--container-user <uid:gid> — the user the steps run as (default: this user)
--container-userns <mode> — user namespace mode; defaults to keep-id for rootless Podman
--container-memory <size> — memory limit per job (the runtime's default is the whole machine)
--container-cpus <n> — CPU limit per job
--container-pids <n> — process limit per job (default 2048, and it cannot be removed)
--container-tmpfs <size> — size of the job's /tmp, which is a tmpfs and therefore memory (default 1G)
--disk-reserve <size> — free space kept under --dir (default 2G; 0 disables the check)
--cache-size <size> — cap for the job cache (default 5G)
--git-cache-size <size> — cap for the saved checkouts (default 10G; 0 keeps every one)
--image-max-age <duration> — prune unused images older than this age (default 168h; 0 keeps every image)
--no-cache — mount the cache but empty it after every job
--known-hosts <path> — a known_hosts file to verify the instance against
--insecure-host-key — accept any host key; for tests and throwaway instances only

See CI runners, Runners.

run#

vole run list [--state <state>] [--branch <branch>] [--commit <sha>] [--limit <n>] [--format <fmt>] [--remote <name|url>]
vole run show <id> [--remote <name|url>]
vole run logs <id> [--attempt <n>] [--step <n>] [--remote <name|url>]
vole run cancel <id> [--remote <name|url>]
vole run rerun <id> [--remote <name|url>]

The id is the 26-character one in the run page URL. run list narrows by status, branch, or a commit id or prefix. The queue lives on the instance, so every subcommand reads it over the key you push with, and any account that may read the repository may use them.

vole change show lists the head's runs, and the combined result's runs when there is one, so a reviewer can copy a failing id without opening the browser.

list — --format understands %(id), %(shortid), %(status), %(workflow), %(job), %(branch), %(sha), %(trigger), %(trigger_title), %(exit), %(attempts), %(log) and %(created).

show — Prints the status, commit, trigger, steps with their exit codes and durations, each attempt's log size, the published artifacts, and whether the result counts as a check.

logs — Writes the bytes the runner wrote, with nothing added, so it can be redirected or piped. It opens the attempt the run is on, or the newest logged attempt once the run has finished.

cancel — A queued run is canceled outright; a running one is asked to stop, and its runner stops at the next heartbeat. Only a maintainer or instance admin may cancel, and data/audit.log records the account, the repository and the run.

rerun — Queues a finished run again with the same pinned job. Only a maintainer or instance admin may rerun, and the audit log records it.

Option Used by Meaning
--remote <name\|url> all the remote naming the instance (default origin)
--state <state> list queued, running, success, failed, canceled, error, or all
--branch <branch> list only runs on this branch
--commit <sha> list only runs for this commit id or prefix
--limit <n> list how many runs to show (default 20)
--format <fmt> list a template such as '%(id) %(status)'
--attempt <n> logs which attempt's log; default is the current or newest one
--step <n> logs only this step's range of the log

See Workflows, Runners.

workflow#

vole workflow check [--dir <path>]
vole workflow list [--dir <path>]
vole workflow run [--dir <path>] [<workflow>...] [--job <id>]... [--container-runtime <name>] [--container-network <mode>] [--container-pull <mode>] [--container-user <uid:gid>] [--container-userns <mode>] [--cache-size <size>] [--no-cache]
vole workflow dispatch --remote <name|url> --workflow <path> [--ref <branch>] [--input k=v]...

A local run executes the steps in the image the workflow names, bound to this working tree, and stops at the first failure. That makes it the run CI performs, not a rehearsal on whatever this machine has installed, so it needs a container runtime. It ignores trigger filters and runs-on, publishes no artifacts, and deploys no site.

Each job gets a cache at /cache, kept under the user cache directory and reused by later runs of the same repository and image. As on a runner, nothing is cached until the image's env: (or the step) points a tool at /cache; --no-cache mounts it and empties it after every job.

check — The same validator runs in pre-receive, so a file that passes check will not be rejected at push time for its contents.

list — Shows what each workflow in the tree runs on.

run — Runs workflows locally, without a server: the steps run in the job's container against this checkout, and it stops at the first failure.

dispatch — Queues a manual run on the instance; the workflow must declare on.workflow-dispatch. Only a maintainer or instance admin may dispatch.

Option Used by Meaning
-c, --config <path> all the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
-C, --dir <path> all the working tree to read .vole/workflows from (default the current directory)
--remote <name\|url> dispatch the remote naming the instance
--workflow <path> dispatch the workflow file to queue
--ref <branch> dispatch the branch to run it on; default the default branch
--input <k=v> dispatch a declared input; repeatable
-j, --job <id> run only jobs with this id; repeatable
--container-runtime <name> run docker (default), podman, or nerdctl
--container-network <mode> run none, or bridge (the default for a local run)
--container-pull <mode> run missing (default), always, or never
--container-user <uid:gid> run the user steps run as
--container-userns <mode> run user namespace mode, such as keep-id
--cache-size <size> run cap for the reused job cache (default 5G)
--no-cache run run with an empty cache

See Workflows, Workflow reference.

Internal#

hook#

vole hook pre-receive|post-receive

Installed in each repository's hooks directory and run by git, not by hand. Anything the pre-receive hook cannot verify is a rejected push.

ssh-authorized-keys#

vole ssh-authorized-keys --fingerprint <sha256> --type <type> --key <base64> --connection <endpoints>

Run by the system sshd, not by hand. On an active key it prints the client's key back with restrict,command= and a token that is good for one session; on an unknown key, a retired account, or an expired run credential it prints nothing, so sshd refuses before any Vole process runs.

The token is bound to the connection endpoint sshd reports, because the forced command's arguments are readable by other local users.

Option Used by Meaning
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
--fingerprint <sha256> — the key's fingerprint, from sshd's %f
--type <type> — the key's type, from sshd's %t
--key <base64> — the key itself, from sshd's %k
--connection <endpoints> — the connection endpoints, from sshd's %C

ssh-exec#

vole ssh-exec --session <token>

Run as the git account by the forced command an authorized_keys line names. It reads SSH_ORIGINAL_COMMAND and SSH_CONNECTION, sends one request over the ssh_socket, copies the streams, and exits with the session's status. It has no access to the repositories, the roster, or the host key; vole serve is still the only process that serves a command.

Option Used by Meaning
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml
--session <token> — the single-use token from ssh-authorized-keys

ssh-shell#

vole ssh-shell

Installed as the git account's shell because sshd runs a forced command through the login shell with -c. It recognises the single command ssh-authorized-keys printed, vole ssh-exec ..., and execs it directly; anything else, including an interactive session with no command, is refused.

ssh-config#

vole ssh-config [--platform linux|darwin] [--user <account>] [--socket <path>]

Renders the drop-in against the platform's defaults, then applies each explicit flag over the default it names. It prints the file and changes nothing: installing it is the operator's job, and the header says so.

The platform changes the commands and paths, not the Match block. The same Match block disables everything but the forced command on both.

Option Used by Meaning
--platform <os> — the platform the drop-in's commands are written for: linux or darwin (default this machine's OS)
--destination <path> — the path the drop-in will be installed at, named in the header's Include line
--user <account> — the account sshd runs the forced command as; also the Match User
--service-user <account> — the account vole serve runs as, which sshd runs AuthorizedKeysCommand as
--shell <path> — the login shell of the user, the wrapper that runs the forced command
--socket <path> — the front door's Unix socket, printed as ssh_socket
--vole <path> — the absolute path to the binary sshd runs
-c, --config <path> — the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml

Help and version#

help#

vole help [<command>]

With no argument, prints the summary vole help shows. With a command name, prints that command's usage and options, exactly as vole <command> -h does.

vole help --markdown writes the generated CLI reference (docs/cli.md).

version#

vole version

A package or release build prints the tag it was built from, and an installation from a module proxy prints the module version. A build from a source checkout prints the commit Go recorded, with .dirty when the tree had uncommitted changes; it never claims a release version it does not carry.

↑↓ to move Enter to open Esc to close