Command reference
Every `concrete` command, with its full flag surface, exit codes and constraints.
One page per command, generated from the command's own definitions — so a flag
reaches this reference because it was declared, not because someone remembered the
page. Run concrete --help for the same list at the terminal.
Commands
| Command | What it does | Synopsis |
|---|---|---|
dev | Serve this workspace's template in the local editor | concrete dev [--port <n>] [--no-auto-update] |
check | Grade the template against every requirement the platform accepts it on | concrete check [--json] [--no-auto-update] |
build | Write the template's built files, building only what changed | concrete build [--out <dir>] [--no-auto-update] |
upgrade | Move the workspace to a newer @homepages/concrete and run its codemods | concrete upgrade [--dry-run] [--to <version>] |
install | Install the tools the playground runs, at the builds this release pins | concrete install |
property list | List the sample properties a workspace can copy in | concrete property list [--no-auto-update] |
property add | Copy a sample property beside this workspace's fixture list | concrete property add <slug> [--no-auto-update] |
publish | Publish the template to HomePages | concrete publish [--dry-run] [--json] [--env-file <path>] [--no-auto-update] |
Global options
Accepted in place of a command. Both are answered without reading the workspace or the registry, so they work when everything else is broken.
| Option | What it does |
|---|---|
--version, -v, -V | Print the installed version |
--help, -h | Print this message |
Staying current
dev, check, build, property list, property add, publish each begin by comparing the workspace's installed
@homepages/concrete with the registry's published release, and then:
- On the published release, or ahead of it — nothing is said and nothing moves.
- Behind inside the same major — in a terminal, with a
package-lock.jsonat the workspace root, the package is refreshed (npm update @homepages/concrete) before the command runs. Outside a terminal, or without a lockfile, the gap is reported and nothing is installed. - A new major is published — the command asks once,
[Y/n], defaulting to yes. Yes runsconcrete upgradeto that version — the install and every codemod between here and there — and the command you typed runs afterwards, still on the version it started as. A whole-word no is remembered for that exact version, and the next major asks again. Outside a terminal it is only reported.
Every line of this goes to stderr, so check --json's report on stdout is never
touched. Nothing here can fail the command it runs in front of: an unreachable registry,
a refresh that does not complete, an install that exits non-zero — each is reported and
stepped over.
The registry is read at most once per 1 hour per user (the answer is cached under
XDG_CACHE_HOME, else ~/.cache) and the read gives up after 2 seconds. A workspace
that installs the package from somewhere other than the registry — workspace:*,
file:, link: — is never checked at all.
Two switches turn the whole thing off. For one command, the flag:
concrete check --no-auto-updateFor every command in this shell, the environment variable, which each shell spells its own way:
- bash or zsh:
export HOMEPAGES_NO_AUTO_UPDATE=1 - PowerShell:
$env:HOMEPAGES_NO_AUTO_UPDATE = "1" - cmd:
set HOMEPAGES_NO_AUTO_UPDATE=1
Any value except 0 counts as on. upgrade is the one command that moves the version
itself, so nothing runs in front of it — which is also why --no-auto-update is not one
of its flags.
Versions
These pages describe @homepages/concrete >=13.0.0 <14.0.0. The range, rather than
the exact version they were generated from: this reference is committed build output,
so a page stamped with a patch version would be stale the day it shipped.
concrete --version prints the installed one.
