Concrete
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

FlagTypeDefaultWhat it does
--port <n>string5180Port to serve on. A non-integer or non-positive value falls back to the default
--no-auto-updatebooleanfalseSkip the package refresh this command runs first when the workspace is behind the published release

Exit codes

CodeWhen
0the server is interrupted (Ctrl-C, Ctrl+Break, closing its terminal, SIGTERM) and shuts down cleanly
1the 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 build does, 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.ts names, 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/catalog is 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