docbot init command bootstraps Docbot in your project by creating a configuration file, setting up the cache directory, and optionally launching a local Qdrant vector database instance.
Basic usage
- Create a
docbot.config.jsoncfile in your project root - Create a
.docbot/cache directory for vector database storage - Add
.docbot/to your.gitignore - Check for Docker and start a Qdrant container (if Docker is available)
The command must be run from within a project directory that contains a
package.json file. Docbot will search for the project root automatically.Options
Overwrite existing configuration. Use this flag to reinitialize Docbot even if
docbot.config.jsonc already exists.Alias: -fSkip Docker setup instructions. Use this if you’re managing Qdrant separately or using a remote instance.
Examples
What gets created
Configuration file
The command createsdocbot.config.jsonc with sensible defaults:
projectSlug is automatically derived from your package.json name field.
Cache directory
A.docbot/ directory is created to store:
- Qdrant vector database files
- Embedding manifests
- Indexing metadata
Docker setup
By default,docbot init attempts to set up a local Qdrant instance using Docker:
- Checks if Docker is installed - Verifies
dockeris available in your PATH - Looks for existing containers - Reuses the
docbot-qdrantcontainer if it exists - Starts or creates the container - Runs
qdrant/qdrantwith port 6333 exposed - Waits for readiness - Polls the health endpoint to confirm Qdrant is accessible
Expected output
Manual Docker setup
If Docker is not installed or you prefer manual setup, the command provides instructions:Common scenarios
Reinitializing after config corruption
Using with remote Qdrant
docbot.config.jsonc to point to your remote instance:
Monorepo setup
Rundocbot init from the workspace root where your main package.json lives. The command will use that location as the project root.
Troubleshooting
Error: could not find package.json
package.json file.
Error: docbot.config.jsonc already exists
--force to overwrite it.
Qdrant container not accessible
If the container starts but isn’t accessible:Next steps
After initialization:- Index your documentation - Run
docbot index --docs ./docsto create embeddings - Configure paths - Edit
docbot.config.jsoncto customize documentation and codebase paths - Run tasks - Use
docbot run "task description"to start the agent