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
| Argument | What it is |
|---|---|
<slug> | The property to copy, as concrete property list names it |
Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--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 folder was copied |
1 | the 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 listtemplate.tsnames: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 listdoes, 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
- Every command — the rest of the command's surface.
