ReferenceCLI
concrete check
The `concrete check` command — its flags, exit codes and constraints.
Grade the template against every requirement the platform accepts it on.
Synopsis
concrete check [--json] [--no-auto-update]Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--json | boolean | false | Print one machine-readable report on stdout instead of human output |
--no-auto-update | boolean | false | Skip the package refresh this command runs first when the workspace is behind the published release |
Exit codes
| Code | When |
|---|---|
0 | the template and the workspace pass every rule that could be measured |
1 | any rule reports a finding, or the run cannot proceed at all |
Constraints
- Under
--jsonthe report is the only thing written to stdout; every notice goes to stderr. - Grades with the toolchain this package ships — TypeScript, ESLint, esbuild — never with a version the workspace declares.
- Every threshold is a platform acceptance criterion, not a preference. No flag or config file raises one.
- Runs
buildfirst and grades the files it wrote; a step that could not build is a finding of the stage it belongs to. - Every run reports what each placed section's built bundles weigh: the renderer, each island chunk and each asset, in the human output and as
weightsunder--json. publishruns this on every publish and refuses on red: an artifact exists only because check passed.template.tsis the only file it finds by name. Pages, sections, the stylesheet and the icon are reached from it by import, and the fixtures by the fixture list it names (fixtures: "./fixtures/index.json"): a JSON list of the property documents and the content fixtures, each content fixture a JSON document naming its property document, every path relative to the file that states it.
Before it runs
This command first checks that the workspace is on the published release of
@homepages/concrete and refreshes it when it is behind inside the same major —
Staying current has the rules. --no-auto-update skips that for one run.
See also
- Every command — the rest of the command's surface.
