Concrete
ReferenceCLI

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

CommandWhat it doesSynopsis
devServe this workspace's template in the local editorconcrete dev [--port <n>] [--no-auto-update]
checkGrade the template against every requirement the platform accepts it onconcrete check [--json] [--no-auto-update]
buildWrite the template's built files, building only what changedconcrete build [--out <dir>] [--no-auto-update]
upgradeMove the workspace to a newer @homepages/concrete and run its codemodsconcrete upgrade [--dry-run] [--to <version>]
installInstall the tools the playground runs, at the builds this release pinsconcrete install
property listList the sample properties a workspace can copy inconcrete property list [--no-auto-update]
property addCopy a sample property beside this workspace's fixture listconcrete property add <slug> [--no-auto-update]
publishPublish the template to HomePagesconcrete 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.

OptionWhat it does
--version, -v, -VPrint the installed version
--help, -hPrint 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.json at 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 runs concrete upgrade to 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-update

For 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.