Skip to content

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>]

Serve the viewer for the Workspace found from the current folder, and print its address.

Terminal window
archidocs dev

Serve on another port, for when the default one is in use.

Terminal window
archidocs dev --port 4000

Serve the Workspace found from another folder, such as a checkout of the Workspace repo beside a code repo.

Terminal window
archidocs dev --workspace ../architecture

Listen on every network interface, so that other machines can open the viewer.

Terminal window
archidocs dev --host 0.0.0.0

--workspace <dir> · Default: the Workspace found from the current folder.

Where to look for the Workspace.

--port <n> · Default: 4321.

The port to serve on.

--host <host> · Default: 127.0.0.1.

The address to listen on.

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.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.