You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't have any mention of `--version` in our docs but let's make
sure we document the new `version` subcommand.
Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
The `version` command prints version information about the `image-builder` binary including its dependencies.
347
+
348
+
```console
349
+
$ image-builder version
350
+
image-builder:
351
+
version: 0.5
352
+
commit: abc123
353
+
dependencies:
354
+
images: v0.100.0
355
+
osbuild: "105"
356
+
```
357
+
358
+
The output format can be changed with `--format`. Available formats are `yaml` (default) and `json`:
359
+
360
+
```console
361
+
$ image-builder version --format=json
362
+
{
363
+
"image-builder": {
364
+
"version": "0.5",
365
+
"commit": "abc123",
366
+
"dependencies": {
367
+
"images": "v0.100.0",
368
+
"osbuild": "105"
369
+
}
370
+
}
371
+
}
372
+
```
373
+
344
374
## Blueprints
345
375
346
376
Images can be customized with [blueprints](https://osbuild.org/docs/user-guide/blueprint-reference). For example we could build the `qcow2` we built above with some customizations applied.
0 commit comments