ReferenceCLI
concrete dev
The `concrete dev` command — its flags, exit codes and constraints.
Serve this workspace's template in the local editor.
Synopsis
concrete dev [--port <n>] [--no-auto-update]Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--port <n> | string | 5180 | Port to serve on. A non-integer or non-positive value falls back to the default |
--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 server is interrupted (Ctrl-C, Ctrl+Break, closing its terminal, SIGTERM) and shuts down cleanly |
1 | the server cannot start |
Constraints
- Runs until interrupted — it is a server, not a one-shot command.
- Serves this one workspace: its template over its fixtures, in the platform's own editor.
- Builds the template as
concrete builddoes, into.concrete/dev, and again on every change to a source file, building only the sections the change reaches; every open editor then shows the new build. An image whose responsive ladder is not derived yet serves as its own file meanwhile, and the sections that import it build again once it lands. - The fixtures are the content fixtures the fixture list in
template.tsnames, each on a property document; an edit to one of those files reloads every open editor. - An edit made in the editor saves into the fixture's documents after a short pause, as stable JSON: a content edit into the content fixture, a fact edit into the property document every fixture on that property reads. An upload into a media list, a pasted link and a library removal save into the property document, an uploaded file into the property's own folder.
api/catalogis the list of every address it answers: under each content fixture, each view (the canvas per canvas and format, and a website's live view per page) and each output (a website's site per page, or an image's or a document's download per format with its page images), every address relative to the server's root. A page the fixture switches off is in none of them.
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.
