sow config
Run sow config check after every edit to sow.yml and before the next build: it catches typos,
invalid names, unusable signing keys, and changes that existing repository state cannot accept,
without touching anything. Run sow config show when you need to know what SOW will actually
apply to a repository or Dist, with every default and inherited value filled in. Both commands
are read-only.
Synopsis
config check accepts --passfile for its signing checks.
config show never reads password files and rejects the option.
Examples
Validate before a build in CI:
Compare the effective policy of two Dists:
sow config check
config check parses and validates the whole sow.yml: schema version, names, path collisions,
the architecture list, Dist formats, membership policy, and signing key references. It also checks
the configuration against existing repository state, and reports the workspace it found and how
much it validated:
Options
| Flag | Description | Default |
|---|---|---|
-C, --workdir DIR |
Workspace discovery start directory | current directory |
--passfile PATH |
Password file for this invocation | per-key config, then SOW_GPG_PASSFILE |
--json |
Output JSON | false |
-h, --help |
Show help | — |
Strict field rejection
An unknown key is an error, not a warning, so a misspelled policy field cannot be silently ignored:
Active workspaces must use schema: sow/v3:
A frozen sow/v2 workspace can still be inspected before migration: config check, repo ls,
repo show, dist ls, and dist show read it without changing it.
How far the signing check goes depends on the signer:
- Metadata key files are unlocked and checked for signing suitability. An external GPG metadata key also performs a small non-interactive signing probe.
- For active RPM package signing, SOW checks the selected password file’s format,
rpm/GPG, and that the secret key is available. It does not sign a package, so it cannot prove the password is correct; RPM macros can also affect authentication. The first real package signing, and verification of its output, is the final check.
Removing an architecture from the workspace list fails while anything still uses it. Remove it from Dist configuration, membership, and built state first.
sow config show
config show prints the effective configuration of the selected scope as YAML:
The file on disk holds only what you wrote:
show filled in protected: false, each Dist’s inherited architectures, limit: 0, and an empty
exclude list. Architectures appear under their canonical family names, x86_64 and aarch64;
the corresponding DEB names are amd64 and arm64.
Options
| Flag | Description | Default |
|---|---|---|
--all |
Show every repository and Dist in the workspace; ignores -r and -d |
off |
-C, --workdir DIR |
Workspace discovery start directory | current directory |
-r, --repo NAME |
Select a repository | selection rules |
-d, --dist NAME |
Select a distribution; repeatable | selection rules |
--json |
Output JSON | false |
-h, --help |
Show help | — |
Select configuration with -r and -d
-r and -d narrow the output to the selected objects, which is the quickest answer to “which
policy applies to this Dist”:
Without --all, the normal repository selection applies,
so a workspace with several repositories needs -r. Inside a Dist directory SOW shows that Dist
unless you pass -d; otherwise it shows every Dist of the selected repository. --all shows the
entire workspace and ignores -r and -d.
Signing references
The output shows key references and resolved fingerprints, never private key material or
passphrases. Configured passfile paths are shown as written; the SOW_GPG_PASSFILE fallback is
a runtime setting and does not appear.
Exit codes
| Code | Trigger |
|---|---|
0 |
Configuration valid, or output printed |
1 |
Runtime or key-resolution failure |
2 |
Usage or discovery error, ambiguous selection, invalid YAML, unknown field, or unsupported schema |
5 |
Existing state, controlled paths, or recovery records are inconsistent |
6 |
Unknown selection, unusable signing configuration, or configuration incompatible with existing state |
See also
- sow.yml Reference — every key, with a complete example file
- Membership Policy — how
excludeandlimitare evaluated - Signing Model — key reference grammar and the two trust chains
- sow init — create objects declared in a hand-written config
- sow check — the runtime counterpart that verifies bytes on disk