CLI Reference

The Verdocs Command Line Interface (CLI) is the primary way to interact with your documentation projects. This page provides a detailed reference for all supported commands and their options.

General Usage

verdocs [COMMAND] [OPTIONS]

To see the help for any command, you can use the --help flag:

verdocs --help
verdocs [COMMAND] --help

Commands

init

Initializes a new documentation project by creating a skeleton project structure.

Usage:

verdocs init [PATH]

Arguments:

What it does:


generate

Builds your documentation project into a production-ready static website.

Usage:

verdocs generate [PATH] [OPTIONS]

Arguments:

Options:

What it does:


preview

Starts a local development server with hot-reloading for real-time documentation previewing.

Usage:

verdocs preview [PATH] [OPTIONS]

Arguments:

Options:

What it does:


clean

Removes generated build files and configuration to reset the project state.

Usage:

verdocs clean [PATH] [OPTIONS]

Arguments:

Options:

What it does:


self-update

Updates Verdocs to the latest version.

Usage:

verdocs self-update

What it does:


uninstall

Removes the Verdocs binary and its configuration directory from your system.

Usage:

verdocs uninstall

What it does:


Global Options

On this page
General Usage Commands init generate preview clean self-update uninstall Global Options