bb is a command-line interface tool for interacting with the BB API and managing AI-assisted conversations for various text-based projects.
For detailed installation instructions, please refer to the INSTALL.md file.
For Windows users, we provide an MSI installer and batch files for easy setup and usage. Please see our Windows User Guide for more information.
bb [command] [options]
On Windows, use bb.exe instead of bb for all CLI commands.
On Windows, you can also use the provided batch files:
bb_init.bat: Initialize BB in your project directory.bb_start.bat: Start BB and open the browser interface.
bb --version: Display the version of the BB CLI tool.bb --help: Show help information for the BB CLI tool.
bb init: Initialize BB in the current directory.- On Windows, you can also double-click
bb_init.batin your project directory.
- On Windows, you can also double-click
bb start: Start the BB API server and open the browser interface.- On Windows, you can also double-click
bb_start.batin your project directory. - Options:
--log-level <level>: Set the log level for the API server.--log-file <file>: Specify a log file to write output.
- On Windows, you can also double-click
bb stop: Stop the BB API server.bb status: Check the status of the BB API server.
bb chat(alias:c): Start a new conversation or continue an existing one.- Options:
-s, -p, --prompt <string>: Prompt (or statement) to start or continue the conversation.-i, --id <string>: Conversation ID to continue.--json: Return JSON instead of plain text.
- Options:
-
bb secure: Manage TLS security settings (see Security Management section) -
bb config: View or update BB configuration.- Commands:
view: View configuration settings--global: Show only global configuration--project: Show only project configuration
get <key>: Get a specific configuration value--global: Get from global configuration--project: Get from project configuration
set <key> <value>: Set a configuration value (defaults to project config)--global: Set in global configuration--project: Set in project configuration
- Examples:
- View current configuration:
bb config view - View global configuration:
bb config view --global - Get a specific value:
bb config get api.logLevel bb config get --global api.apiPort - Set configuration values:
# Set in project config (default) bb config set api.logLevel debug # Set in global config bb config set --global api.apiPort 3162 # Set complex values (automatically parsed) bb config set api.toolConfigs '{"tool1": {"enabled": true}}'
- View current configuration:
- Notes:
- Nested keys use dot notation (e.g., 'api.logLevel')
- Values are automatically parsed as JSON when appropriate
- Project config is the default target for 'set' command
- Configuration changes take effect immediately
- Commands:
bb add: Add files to the conversation (not implemented).bb remove: Remove files from the conversation (not implemented).bb list: List files in the conversation (not implemented).
bb clear: Clear the current conversation (not implemented).bb request: Request changes from the LLM (not implemented).bb undo: Undo the last change (not implemented).
bb logs: View chat conversation logs (default).- Options:
-n, --lines <number>: Number of lines to display (default: 20).-f, --follow: Follow the log output in real-time with color-enabled display for chat conversations.--api: Show logs for the API server instead of chat conversations.-i, --id <string>: Conversation ID to view logs for.
- Options:
bb usage: Show current token usage (not implemented).
bb secure: Manage TLS security for BB API- Commands:
on: Enable TLS (recommended)- Generates CA and server certificates
- Adds CA to system trust store
- Updates configuration
off: Disable TLS (not recommended)- Disables TLS in configuration
- Keeps certificates for future use
status: Show detailed TLS status- Certificate details and validity
- Trust store status
- Browser compatibility info
- Platform-specific guidance
- Examples:
# Enable TLS (recommended) bb secure on # Check TLS status bb secure status # Disable TLS (not recommended) bb secure off - Notes:
- TLS is enabled by default for security
- Certificates are automatically managed
- Your computer's login password may be required to update the trust store
- See Certificate Management Guide for details
- Commands:
-
Initialize BB in your project:
bb initOn Windows, double-click
bb_init.batin your project directory. -
Start the BB API server and open the browser interface:
bb startOn Windows, double-click
bb_start.batin your project directory. -
Start a new conversation:
bb chat -p "Hello, I'd like to start a new project." -
Continue an existing conversation:
bb chat -i <conversation-id> -p "Can you explain the last change?" -
View chat conversation logs in real-time with color-enabled display:
bb logs -f -i <conversation-id> -
View API logs:
bb logs --api -
Check the status of the API server:
bb status -
Stop the API server:
bb stop
Note: Many commands are currently not implemented and will be added in future updates.
For detailed instructions on using BB on Windows, including how to use the provided batch files and the importance of project-specific usage, please refer to our Windows User Guide.
Remember that the init and start commands (and their corresponding batch files) are project-specific. Always ensure you're in the correct project directory when running these commands or using the batch files.