archidocs dev
Serve the viewer locally and reload it when a .yaml or .md file in the Workspace changes.
archidocs dev [--workspace <dir>] [--port <n>] [--host <host>]Examples
Section titled “Examples”Serve the viewer for the Workspace found from the current folder, and print its address.
archidocs devServe on another port, for when the default one is in use.
archidocs dev --port 4000Serve the Workspace found from another folder, such as a checkout of the Workspace repo beside a code repo.
archidocs dev --workspace ../architectureListen on every network interface, so that other machines can open the viewer.
archidocs dev --host 0.0.0.0--workspace
Section titled “--workspace”--workspace <dir> · Default: the Workspace found from the current folder.
Where to look for the Workspace.
--port
Section titled “--port”--port <n> · Default: 4321.
The port to serve on.
--host
Section titled “--host”--host <host> · Default: 127.0.0.1.
The address to listen on.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
2 |
It could not start: an unknown flag, a flag missing its value, a --port that is not a port or is in use, or no Workspace found. |
Once it is serving, dev runs until you stop it with Ctrl+C. A Workspace with errors does not stop it: it prints them and keeps serving. The interrupt ends the process, so the exit status is the shell’s for an interrupted command (130 in most shells), not a code of its own.
Exit 2 prints the reason to stderr as archidocs: <message>, and after most mistakes in the command line, the usage summary.
See also
Section titled “See also”- Quick start: opens a new Workspace in the viewer with it.
- Save a View: uses the viewer it serves to write a Saved View.
- Use the viewer: what the viewer shows.
- How the Workspace is found: where it looks for
workspace.yaml. - Which files are read: the files whose changes reload the page.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.