Concrete
ReferenceCLI

concrete property add

The `concrete property add` command — its flags, exit codes and constraints.

Copy a sample property beside this workspace's fixture list.

Synopsis

concrete property add <slug> [--no-auto-update]

Arguments

ArgumentWhat it is
<slug>The property to copy, as concrete property list names it

Flags

FlagTypeDefaultWhat it does
--no-auto-updatebooleanfalseSkip the package refresh this command runs first when the workspace is behind the published release

Exit codes

CodeWhen
0the folder was copied
1the folder already exists, the library has no property by that slug, the library cannot be read, or it runs outside a workspace

Constraints

  • Copies the whole folder — property.json, media/, README.md, sources.json — to properties/<slug>/ beside the fixture list template.ts names: fixtures/properties/<slug>/ for ./fixtures/index.json. From then on it is the workspace's to edit.
  • Prints the content fixture to make on it; listing that fixture in the fixture list is yours to do.
  • Never overwrites: an existing properties/<slug>/ there is refused and named, and nothing is copied.
  • The workspace never depends on the library: nothing is added to package.json, so no later release of it can change a copied property.
  • Reads the library the way property list does, through the same per-user cache.

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