init

Initializes a new htmldocs project in the current directory.
npx htmldocs@latest init

login

Authenticates the CLI with the cloud. This allows you to publish your documents to the cloud.
npx htmldocs@latest login

dev

Starts a local development server that will watch your files and automatically rebuild your document template when you make changes. Login not required.
npx htmldocs@latest dev
Options
--dir
string
default:"./documents"
Change the directory of your document templates.
--port
string
default:"3000"
Port to run dev server on

publish <file>

Publishes the document to the cloud for API use. Must be authenticated.
Be sure to run this from the root of your project.
npx htmldocs@latest publish <file>
Options
file
string
required
The file path of the document to publish.

--help

Shows all available commands and options.
npx htmldocs@latest --help
Options
-v, --verbose
boolean
Enable verbose logging
F.A.Q