woodglue.cli¶
CLI entry point and namespace loading.
wgl -- woodglue server CLI.
Commands
wgl start Start the server (and optionally the engine)
wgl stop Stop a running instance
wgl run
wgl token prints the tokens of the built-in admin Service User, which holds
every Grant. wgl start never prints a token, since its output may be captured
in logs (e.g. the systemd journal). Every change takes effect immediately: the
server checks auth.db on every request.
A <user> is a User id, email, or (unique) name.
WoodglueMain
¶
Bases: Main
wgl -- woodglue server CLI
Source code in src/woodglue/cli.py
UserGroup
¶
CaddyGroup
¶
load_namespaces(ns_map, data_dir)
¶
Load all namespaces from config, keyed by prefix.
Each NamespaceEntry specifies exactly one of gref, file, or
entries. Returns (Namespace, NamespaceEntry) tuples so callers
can inspect per-namespace flags like expose_api and run_engine.
Each namespace is built with its MountContext active, so fragment
constructors can read current_mount.
Source code in src/woodglue/cli.py
start(ctx)
¶
Start the server (and optionally the engine)
Source code in src/woodglue/cli.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | |
stop(ctx)
¶
Stop a running instance
Source code in src/woodglue/cli.py
run(ctx, nsref)
¶
Run a callable or DAG once
Source code in src/woodglue/cli.py
status(ctx)
¶
Show server status
Source code in src/woodglue/cli.py
token(ctx, new=False)
¶
Print the admin token(s); --new replaces all of them with a new one
Source code in src/woodglue/cli.py
user_list(ctx)
¶
List Users with their kind, Roles, and state
Source code in src/woodglue/cli.py
user_add(ctx, name)
¶
user_assign(ctx, user, role)
¶
user_unassign(ctx, user, role)
¶
user_disable(ctx, user)
¶
Disable a User and revoke all of its credentials
user_enable(ctx, user)
¶
user_issue(ctx, user, name, days=0, grants='')
¶
Create a Personal Access Token and print its secret; --grants narrows it (comma-separated)
Source code in src/woodglue/cli.py
user_tokens(ctx, user)
¶
List a User's Personal Access Tokens (never the secrets)
Source code in src/woodglue/cli.py
user_revoke(ctx, token_id)
¶
login(ctx, server='', name='')
¶
Get a Personal Access Token for --server through the browser and store it
Source code in src/woodglue/cli.py
logout(ctx, server='')
¶
Revoke and forget the token stored for --server
Source code in src/woodglue/cli.py
config(ctx, site)
¶
Print a Caddyfile serving this instance at