CLI Reference

Global Flags

These flags work with any command:

FlagDescription
-C, --project <path>Project root directory (defaults to current directory)
-v, --verboseEnable verbose output with detailed build steps
-q, --quietSuppress all output except errors (useful for CI)

Commands

oxidoc init

Initialize a new Oxidoc project.

oxidoc init my-docs

Creates a directory with a starter oxidoc.toml, home.rdx landing page, and sample docs.

FlagDescription
<name>Project directory name (optional, defaults to current directory)
-f, --forceForce overwrite existing files
-y, --yesSkip confirmation prompts

oxidoc dev

Start the development server with hot reload.

oxidoc dev
oxidoc dev -p 8080
FlagDescription
-p, --port <port>Port to serve on (default: 3000)

Edit any .rdx file and the browser refreshes automatically.

oxidoc build

Build the site for production (static site generation).

oxidoc build
oxidoc build -o public
FlagDescription
-o, --output <dir>Output directory (default: dist)

Generates a fully static site with all HTML, CSS, JS, Wasm, and search index files.

oxidoc clean

Remove build artifacts (.oxidoc-dev/ and dist/ directories).

oxidoc clean

oxidoc archive

Manage versioned documentation archives.

# Create an archive from current docs
oxidoc archive create v1.0

# List all archives
oxidoc archive list

# Delete an archive
oxidoc archive delete v1.0
SubcommandDescription
create <version>Snapshot the current docs as a version archive
listList all available archived versions
delete <version>Delete a specific version archive

See Versioning for the full workflow.

oxidoc update

Update to the latest version.

oxidoc update
oxidoc update --pre
FlagDescription
--preInstall the latest prerelease instead of stable

oxidoc set-version

Switch to a specific version.

oxidoc set-version v0.1.0

Downloads and installs the exact version specified.

Examples

Run dev server from a different directory:

oxidoc -C ../my-docs dev

Production build with verbose output to a custom directory:

oxidoc -v build -o public

Quiet build for CI:

oxidoc -q build
View page sourceLast updated on Mar 17, 2026 by Farhan Syah