Vole docs Source

Quickstart#

Create a local Vole instance, push a commit, and open an issue. By the end, you will have a running forge and a clone that contains both source and issue history.

Before you start#

You need:

If you do not have an SSH key, create one and accept the default file location:

ssh-keygen -t ed25519

Start in an empty workspace. You will create a forge/ directory for the server and a demo/ clone beside it. The examples use the account name you; replace that name and the SSH key path if yours differs.

1. Create the instance#

Create the instance and change into its directory:

mkdir forge
cd forge
vole admin init --dir .

Vole writes vole.toml and data/, then prints:

initialised in <workspace>/forge

An instance is just this configuration and data directory. Stay in forge/ for the next three steps so Vole finds ./vole.toml automatically.

2. Create your account#

Register the SSH key you will use for Git:

vole admin account create you --key ~/.ssh/id_ed25519.pub

The output confirms the account and key:

you
key SHA256:<fingerprint>

3. Create a repository#

Create demo and grant your account repository-admin access:

vole admin repo create demo
vole admin acl set-role demo you admin

New repositories are private. Repository admin access lets you push main, manage access, and administer this repository without making you an instance administrator.

Optional: allow anonymous reads

Run vole admin acl set-default-role demo read if you want to browse demo without signing in. This quickstart listens only on loopback, so other machines still cannot connect. Skip this command to keep demo private.

4. Start the server#

In the same forge/ directory, run:

vole serve

Leave this process running. Vole now listens on:

These loopback addresses make the instance available only on this machine. If you allowed anonymous reads, open http://127.0.0.1:8080/demo after pushing the first commit to see the repository in your browser.

Browser sign-in needs an HTTPS public_url and a passkey, so this local configuration keeps it disabled. Use the CLI for this quickstart; Deploy on Linux covers browser sign-in for a deployed forge.

5. Clone and push#

Open a second terminal in the original workspace, beside forge/. Clone the empty repository and enter it:

git clone ssh://git@127.0.0.1:2222/demo.git
cd demo

If SSH asks whether to trust the local host key, answer yes. Git also warns that the repository is empty; that is expected.

Create the first commit on main and push it:

git branch -M main
printf '# demo\n' > README.md
git add README.md
git commit -m "Start the repository"
git push -u origin main

Confirm which account and repository role your SSH key has:

vole whoami
vole whoami --role
you
admin

6. Open an issue#

Run the Vole CLI from the clone:

vole issue new --title "Write the introduction" \
  -m "Explain what a new reader can do with demo."
vole issue list --format '%(number) %(state) %(author) %(title)'

The issue list shows your first issue:

#1 open you Write the introduction

The CLI writes the issue to the repository's vole branch and pushes it over SSH. List the remote branches to see the two histories:

git branch -r
  origin/main
  origin/vole

origin/main contains the README commit. origin/vole contains the issue. Both are part of the same clone.

7. Stop the server and read the issue offline#

Return to the server terminal and press Ctrl+C. Then, from the demo/ clone, read the issue without the server:

vole issue show 1

This works because the clone carries Vole's collaboration history as well as the source. Writes still need the server and your SSH identity.

Your instance remains in forge/. To start it again later, run this from the demo/ directory:

cd ../forge
vole serve

Next#

↑↓ to move Enter to open Esc to close