vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
| 1 | # Quickstart |
| 2 | |
| 3 | Create a local Vole instance, push a commit, and open an issue. By the end, you |
| 4 | will have a running forge and a clone that contains both source and issue |
| 5 | history. |
| 6 | |
| 7 | ## Before you start |
| 8 | |
| 9 | You need: |
| 10 | |
| 11 | - [Vole installed](install.md), with `vole version` printing a version; |
| 12 | - Git configured with your author name and email; |
| 13 | - an SSH key for Git access. |
| 14 | |
| 15 | If you do not have an SSH key, create one and accept the default file location: |
| 16 | |
| 17 | ```sh |
| 18 | ssh-keygen -t ed25519 |
| 19 | ``` |
| 20 | |
| 21 | Start in an empty workspace. You will create a `forge/` directory for the server |
| 22 | and a `demo/` clone beside it. The examples use the account name `you`; replace |
| 23 | that name and the SSH key path if yours differs. |
| 24 | |
| 25 | ## 1. Create the instance |
| 26 | |
| 27 | Create the instance and change into its directory: |
| 28 | |
| 29 | ```sh |
| 30 | mkdir forge |
| 31 | cd forge |
| 32 | vole admin init --dir . |
| 33 | ``` |
| 34 | |
| 35 | Vole writes `vole.toml` and `data/`, then prints: |
| 36 | |
| 37 | ```text |
| 38 | initialised in <workspace>/forge |
| 39 | ``` |
| 40 | |
| 41 | An instance is just this configuration and data directory. Stay in `forge/` for |
| 42 | the next three steps so Vole finds `./vole.toml` automatically. |
| 43 | |
| 44 | ## 2. Create your account |
| 45 | |
| 46 | Register the SSH key you will use for Git: |
| 47 | |
| 48 | ```sh |
| 49 | vole admin account create you --key ~/.ssh/id_ed25519.pub |
| 50 | ``` |
| 51 | |
| 52 | The output confirms the account and key: |
| 53 | |
| 54 | ```text |
| 55 | you |
| 56 | key SHA256:<fingerprint> |
| 57 | ``` |
| 58 | |
| 59 | ## 3. Create a repository |
| 60 | |
| 61 | Create `demo` and grant your account repository-admin access: |
| 62 | |
| 63 | ```sh |
| 64 | vole admin repo create demo |
| 65 | vole admin acl set-role demo you admin |
| 66 | ``` |
| 67 | |
| 68 | New repositories are private. Repository admin access lets you push `main`, |
| 69 | manage access, and administer this repository without making you an instance |
| 70 | administrator. |
| 71 | |
| 72 | !!! tip "Optional: allow anonymous reads" |
| 73 | Run `vole admin acl set-default-role demo read` if you want to browse `demo` |
| 74 | without signing in. This quickstart listens only on loopback, so other |
| 75 | machines still cannot connect. Skip this command to keep `demo` private. |
| 76 | |
| 77 | ## 4. Start the server |
| 78 | |
| 79 | In the same `forge/` directory, run: |
| 80 | |
| 81 | ```sh |
| 82 | vole serve |
| 83 | ``` |
| 84 | |
| 85 | Leave this process running. Vole now listens on: |
| 86 | |
| 87 | - `127.0.0.1:2222` for authenticated Git over SSH; |
| 88 | - `127.0.0.1:8080` for the web interface and read-only Git over HTTP. |
| 89 | |
| 90 | These loopback addresses make the instance available only on this machine. If |
| 91 | you allowed anonymous reads, open <http://127.0.0.1:8080/demo> after pushing the |
| 92 | first commit to see the repository in your browser. |
| 93 | |
| 94 | Browser sign-in needs an HTTPS `public_url` and a passkey, so this local |
| 95 | configuration keeps it disabled. Use the CLI for this quickstart; |
| 96 | [Deploy on Linux](deploy/linux.md) covers browser sign-in for a deployed forge. |
| 97 | |
| 98 | ## 5. Clone and push |
| 99 | |
| 100 | Open a second terminal in the original workspace, beside `forge/`. Clone the |
| 101 | empty repository and enter it: |
| 102 | |
| 103 | ```sh |
| 104 | git clone ssh://git@127.0.0.1:2222/demo.git |
| 105 | cd demo |
| 106 | ``` |
| 107 | |
| 108 | If SSH asks whether to trust the local host key, answer `yes`. Git also warns |
| 109 | that the repository is empty; that is expected. |
| 110 | |
| 111 | Create the first commit on `main` and push it: |
| 112 | |
| 113 | ```sh |
| 114 | git branch -M main |
| 115 | printf '# demo\n' > README.md |
| 116 | git add README.md |
| 117 | git commit -m "Start the repository" |
| 118 | git push -u origin main |
| 119 | ``` |
| 120 | |
| 121 | Confirm which account and repository role your SSH key has: |
| 122 | |
| 123 | ```sh |
| 124 | vole whoami |
| 125 | vole whoami --role |
| 126 | ``` |
| 127 | |
| 128 | ```text |
| 129 | you |
| 130 | admin |
| 131 | ``` |
| 132 | |
| 133 | ## 6. Open an issue |
| 134 | |
| 135 | Run the Vole CLI from the clone: |
| 136 | |
| 137 | ```sh |
| 138 | vole issue new --title "Write the introduction" \ |
| 139 | -m "Explain what a new reader can do with demo." |
| 140 | vole issue list --format '%(number) %(state) %(author) %(title)' |
| 141 | ``` |
| 142 | |
| 143 | The issue list shows your first issue: |
| 144 | |
| 145 | ```text |
| 146 | #1 open you Write the introduction |
| 147 | ``` |
| 148 | |
| 149 | The CLI writes the issue to the repository's `vole` branch and pushes it over |
| 150 | SSH. List the remote branches to see the two histories: |
| 151 | |
| 152 | ```sh |
| 153 | git branch -r |
| 154 | ``` |
| 155 | |
| 156 | ```text |
| 157 | origin/main |
| 158 | origin/vole |
| 159 | ``` |
| 160 | |
| 161 | `origin/main` contains the README commit. `origin/vole` contains the issue. Both |
| 162 | are part of the same clone. |
| 163 | |
| 164 | ## 7. Stop the server and read the issue offline |
| 165 | |
| 166 | Return to the server terminal and press `Ctrl+C`. Then, from the `demo/` clone, |
| 167 | read the issue without the server: |
| 168 | |
| 169 | ```sh |
| 170 | vole issue show 1 |
| 171 | ``` |
| 172 | |
| 173 | This works because the clone carries Vole's collaboration history as well as the |
| 174 | source. Writes still need the server and your SSH identity. |
| 175 | |
| 176 | Your instance remains in `forge/`. To start it again later, run this from the |
| 177 | `demo/` directory: |
| 178 | |
| 179 | ```sh |
| 180 | cd ../forge |
| 181 | vole serve |
| 182 | ``` |
| 183 | |
| 184 | ## Next |
| 185 | |
| 186 | - [Issues](issues.md) — discuss, assign, label, and close work. |
| 187 | - [Change requests](change-requests.md) — propose and review the next commit. |
| 188 | - [Workflows](workflows.md) — test every push in a container. |
| 189 | - [Deploy on Linux](deploy/linux.md) — run a shared forge with HTTPS and browser |
| 190 | sign-in. |
| 191 |