Skip to content

Command Line Tools

wheels docs serve

Serves generated documentation locally for development and review.

Terminal window
wheels docs serve [--root=<dir>] [--port=<port>] [--open]
ParameterDescriptionDefault
--rootRoot directory to servedocs/api
--portPort to serve on35729
--openOpen browser automaticallytrue

The docs serve command starts a local web server to preview your generated documentation.

Terminal window
wheels docs serve
Terminal window
wheels docs serve --port=8080
Terminal window
wheels docs serve --root=public/api-docs
Terminal window
wheels docs serve --open=false
Terminal window
wheels docs serve --root=docs/generated --port=3000
==================================================
Documentation Server
==================================================
Starting documentation server...
√ | Starting Server
| √ | Setting site [wheels-docs-BBAA12EF-7A83-4D03-BD6DBFE4AC17C1F9] Profile to [development]
| √ | Loading CFConfig into server
[SUCCESS]: Documentation server started!
Serving directory: D:\Command Box\wheels\templates\base\src\docs\api\
URL: http://localhost:35729
Opening browser...
[SUCCESS]: Server is up and running!
Press Ctrl+C to stop the server

If documentation is not found:

Documentation directory not found: /docs/api
💡 Tip: Run 'wheels docs generate' first to create documentation

With --open=true (default), the server automatically opens your default browser to the documentation URL.

Terminal window
# Step 1: Generate documentation
wheels docs generate
# Step 2: Serve documentation
wheels docs serve
# Step 3: Make changes and regenerate
wheels docs generate
# Browser will show updated docs
Terminal window
# Generate and serve from custom location
wheels docs generate --output=public/docs
wheels docs serve --root=public/docs --port=8080
Terminal window
# Use a different port
wheels docs serve --port=8081
Terminal window
# Make sure to generate docs first
wheels docs generate
wheels docs serve
Terminal window
# Manually navigate to the URL shown
# Or check your default browser settings
  • Server is intended for development/review only
  • For production, deploy static files to web server
  • Large documentation sets may take time to generate
  • Offline mode caches documentation locally