Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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.

Rewrite documentation around reader tasks

d1f44d838966c0a4762073f12375ec7562582fdf · Keenan Nemetz · 21h ago · parent 9103f6a8

docs/quickstart.md +87−59

@@ -1,12 +1,30 @@
1 1 # Quickstart
2 2
3 Create a local Vole instance, push a first commit, and open an issue. You need an
4 installed `vole`, Git configured with your author name and email, and an SSH
5 public key. Start in an empty workspace and follow the steps in order.
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 6
7 ## 1. Create an instance
7 ## Before you start
8 8
9 An instance is a configuration file and a data directory:
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:
10 28
11 29 ```sh
12 30 mkdir forge
@@ -14,12 +32,14 @@ cd forge
14 32 vole admin init --dir .
15 33 ```
16 34
17 Vole writes `vole.toml` and `data/`. The configuration uses absolute paths, so
18 you can return to this directory and start the server later.
35 Vole writes `vole.toml` and `data/`, then prints:
19 36
20 Commands find `./vole.toml` automatically. If you initialize the instance
21 somewhere else, pass `--config <path>` or set `VOLE_CONFIG`; see
22 [Which config Vole reads](configuration.md#which-config-vole-reads).
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.
23 43
24 44 ## 2. Create your account
25 45
@@ -29,83 +49,76 @@ Register the SSH key you will use for Git:
29 49 vole admin account create you --key ~/.ssh/id_ed25519.pub
30 50 ```
31 51
32 Replace `you` with an account name and the key path if yours differs. The output
33 names the account and key fingerprint:
52 The output confirms the account and key:
34 53
35 54 ```text
36 55 you
37 56 key SHA256:<fingerprint>
38 57 ```
39 58
40 To create a browser-only account instead, omit `--key`. Vole then prints a
41 one-time passkey enrollment token, or an enrollment link when `public_url` is
42 configured. You do not need that account for this quickstart.
43
44 59 ## 3. Create a repository
45 60
46 ```sh
47 vole admin repo create demo
48 ```
49
50 The repository starts private. Grant your account access before cloning; `admin`
51 lets you push to `main` and manage the repository:
61 Create `demo` and grant your account repository-admin access:
52 62
53 63 ```sh
64 vole admin repo create demo
54 65 vole admin acl set-role demo you admin
55 66 ```
56 67
57 To also allow anonymous reads, publish it:
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.
58 71
59 ```sh
60 vole admin acl set-default-role demo read
61 ```
62
63 Skip the publish step if you want `demo` to remain private. Creating it with
64 `--visibility public` makes it readable by anyone from the start; push access is
65 still a role.
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.
66 76
67 77 ## 4. Start the server
68 78
69 From the instance directory, run:
79 In the same `forge/` directory, run:
70 80
71 81 ```sh
72 82 vole serve
73 83 ```
74 84
75 Leave this process running and open a second terminal. The default listeners
76 are:
85 Leave this process running. Vole now listens on:
77 86
78 87 - `127.0.0.1:2222` for authenticated Git over SSH;
79 88 - `127.0.0.1:8080` for the web interface and read-only Git over HTTP.
80 89
81 Both listeners use loopback, so other machines cannot connect to this local
82 instance.
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.
83 93
84 Port 2222 is deliberate here. A deployed instance can put the system sshd in front
85 so no clone URL carries a port ([Put sshd in front of
86 Vole](deploy/index.md#put-sshd-in-front-of-vole)), but that is a change to the
87 host's sshd, and a development instance should not need one.
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.
88 97
89 98 ## 5. Clone and push
90 99
91 From a workspace in the second terminal:
100 Open a second terminal in the original workspace, beside `forge/`. Clone the
101 empty repository and enter it:
92 102
93 103 ```sh
94 104 git clone ssh://git@127.0.0.1:2222/demo.git
95 105 cd demo
96 106 ```
97 107
98 The repository is empty. Create a commit on `main` and push it:
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:
99 112
100 113 ```sh
114 git branch -M main
101 115 printf '# demo\n' > README.md
102 116 git add README.md
103 117 git commit -m "Start the repository"
104 git branch -M main
105 118 git push -u origin main
106 119 ```
107 120
108 Confirm which account and role your SSH key has on this repository:
121 Confirm which account and repository role your SSH key has:
109 122
110 123 ```sh
111 124 vole whoami
@@ -119,7 +132,7 @@ admin
119 132
120 133 ## 6. Open an issue
121 134
122 Run this from the clone:
135 Run the Vole CLI from the clone:
123 136
124 137 ```sh
125 138 vole issue new --title "Write the introduction" \
@@ -127,36 +140,51 @@ vole issue new --title "Write the introduction" \
127 140 vole issue list --format '%(number) %(state) %(author) %(title)'
128 141 ```
129 142
143 The issue list shows your first issue:
144
130 145 ```text
131 146 #1 open you Write the introduction
132 147 ```
133 148
134 149 The CLI writes the issue to the repository's `vole` branch and pushes it over
135 SSH. Inspect both source and issue history with:
150 SSH. List the remote branches to see the two histories:
136 151
137 152 ```sh
138 git log --all --oneline -3
153 git branch -r
139 154 ```
140 155
141 A clone therefore contains the issue as well as the code. [Issues](issues.md)
142 explains identifiers, comments, and triage.
156 ```text
157 origin/main
158 origin/vole
159 ```
143 160
144 ## Enable browser sign-in
161 `origin/main` contains the README commit. `origin/vole` contains the issue. Both
162 are part of the same clone.
145 163
146 This local server allows anonymous reads, but browser sign-in is disabled.
147 Passkeys require an HTTPS `public_url`, so the startup log reports `browser login
148 disabled` for this configuration.
164 ## 7. Stop the server and read the issue offline
149 165
150 To use browser writes, deploy Vole behind HTTPS and enroll a passkey:
166 Return to the server terminal and press `Ctrl+C`. Then, from the `demo/` clone,
167 read the issue without the server:
151 168
152 1. [Deploy a server](deploy/index.md) or
153 [enable automatic HTTPS](configuration.md#automatic-https-with-acme).
154 2. [Create an enrollment link](accounts-and-access.md#browser-sign-in).
155 3. Open that link and register the passkey.
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 ```
156 183
157 184 ## Next
158 185
186 - [Issues](issues.md) — discuss, assign, label, and close work.
159 187 - [Change requests](change-requests.md) — propose and review the next commit.
160 188 - [Workflows](workflows.md) — test every push in a container.
161 - [Operations](operations.md#back-up-an-instance) — back up an instance before
162 relying on it.
189 - [Deploy on Linux](deploy/linux.md) — run a shared forge with HTTPS and browser
190 sign-in.