Scaffolding entrypoint.
Design model
Platform spec article
Design model
Spec standingStandard
-
beskid new command
Context
Decision
Command must be
beskid new.Consequences
See project-templates ADRs.
Verification anchors
CLI command table.
-
Interactive modes
Context
Scaffolding entrypoint.
Decision
Support interactive and non-interactive instantiation.
Consequences
See project-templates ADRs.
Verification anchors
CLI tests.
-
Update on instantiate
Context
Scaffolding entrypoint.
Decision
Run template update check when online.
Consequences
See project-templates ADRs.
Verification anchors
Mock registry test.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Purpose and scope
Section titled “Purpose and scope”Tooling-side state and paths for the beskid new command family.
Cache directory
Section titled “Cache directory”| Path (under user config root) | Content |
|---|---|
templates/installed/<identity>/ | Extracted template tree + manifest.snapshot.json |
templates/git/<hash>/ | Git clone caches |
templates/registry-index.json | Optional index of last-known registry versions for update checks |
Exact config root must match other Beskid CLI state (same resolver as beskid pckg auth config).
Install record
Section titled “Install record”manifest.snapshot.json stores:
identity,shortName,packageId,resolvedVersion,checksum,installedAtsource:registry|path|gityanked: boolean snapshot at install time
Update check
Section titled “Update check”On beskid new <shortName> (and --package):
- Read installed
resolvedVersion. - Query registry for latest non-yanked version.
- If newer: print update message (non-fatal).
- If current is yanked: print warning (see contracts).
Online vs offline
Section titled “Online vs offline”| Mode | Behavior |
|---|---|
| Registry reachable | Prefer download of beskid.templates.*; update check enabled |
| Offline | Use cache only; list shows installed; warn if update check skipped |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | User error (validation, collision) |
| 2 | Engine or I/O failure |
| 3 | Registry auth or network failure when required |
Code anchors
Section titled “Code anchors”compiler/crates/beskid_cli/src/cli.rs— subcommand registrationcompiler/crates/beskid_pckg— download API