A powerful command-line interface for creating, managing, and deploying Codebolt agents and tools. The CLI enables developers to build intelligent AI assistants that can handle software development lifecycle (SDLC) tasks and provide specialized functionality.
# Install globally
npm install -g codebolt-cli
Before using most features, you'll need to authenticate:
codebolt-cli login
To logout:
codebolt-cli logout
Check the application version:
codebolt-cli version
Create a new Codebolt Agent:
codebolt-cli createagent
codebolt-cli createagent -n "MyAgent" --quick
Publish an agent to the registry:
codebolt-cli publishagent [folderPath]
List all agents created and uploaded by you:
codebolt-cli listagents
Start an agent in the specified working directory:
codebolt-cli startagent [workingDir]
Pull the latest agent configuration from server:
codebolt-cli pullagent [workingDir]
Clone an agent using its unique_id:
codebolt-cli cloneagent <unique_id> [targetDir]
Create a new MCP (Model Context Protocol) tool:
codebolt-cli createtool
codebolt-cli createtool -n "MyTool" -i "my-tool-id" -d "Tool description"
Options:
-n, --name <name>
: Name of the tool-i, --id <unique-id>
: Unique identifier (no spaces)-d, --description <description>
: Description of the tool-p, --parameters <json>
: Tool parameters in JSON format
Publish an MCP tool to the registry:
codebolt-cli publishtool [folderPath]
This command will:
- Read the
codebolttool.yaml
configuration file - Package and upload the tool's source code
- Register the tool in the MCP registry
- Handle both new tool creation and updates
Requirements for publishing:
- A
codebolttool.yaml
file must be present in the tool directory - Required fields in
codebolttool.yaml
:name
,uniqueName
,description
Interactive prompts for new tools:
- GitHub repository URL (optional)
- Category selection
- Tags (comma-separated)
- API key requirement
List all MCP tools published by you:
codebolt-cli listtools
Pull the latest MCP tool configuration from server:
codebolt-cli pulltools [workingDir]
This command will:
- Read your local
codebolttool.yaml
file - Fetch the latest configuration from the server
- Compare versions and prompt for confirmation if needed
- Update your local configuration file
Run a specified tool with a file:
codebolt-cli runtool <command> <file>
Inspect a server file using the MCP inspector:
codebolt-cli inspecttool <file>
When creating or publishing MCP tools, ensure your codebolttool.yaml
file contains:
name: "My MCP Tool"
uniqueName: "my-mcp-tool"
description: "Description of what this tool does"
version: "1.0.0"
parameters:
param1: "value1"
param2: "value2"
Agents should contain a codeboltagent.yaml
configuration file.
MCP tools should contain a codebolttool.yaml
configuration file and follow the MCP protocol standards.
cd my-mcp-tool-directory
codebolt-cli publishtool
cd my-existing-tool
codebolt-cli publishtool
The CLI will automatically detect if it's an update based on the uniqueName
in your configuration.
The CLI provides detailed error messages and colored output for better user experience. Make sure you're authenticated and have the required configuration files before running publish commands.
Codebolt Team
- Create Agents: Interactive wizard for agent creation
- Publish Agents: Deploy agents to the Codebolt platform
- Clone Agents: Copy and customize existing agents
- Start Agents: Run agents locally for development
- Sync Agents: Pull latest configurations from the platform
- Create Tools: Build MCP-compatible tools
- Test Tools: Run and debug tools locally
- Inspect Tools: Interactive debugging with MCP inspector
- Parameter Configuration: Flexible tool parameterization
- Secure Login: OAuth-based authentication
- Session Management: Persistent login sessions
- Project Organization: Structured directory management
- Team Collaboration: Share and collaborate on agents
- Node.js 14.0 or higher
- npm 6.0 or higher
npm install -g codebolt-cli
npm install codebolt-cli
npx codebolt-cli version
git clone https://github.com/codeboltai/cli.git
cd cli
npm install
npm link
Comprehensive documentation is available at docs.codebolt.ai:
- Overview - Introduction and architecture
- Installation - Detailed setup guide
- Authentication - Login and session management
- Agent Development - Creating and managing agents
- Tool Development - Building custom tools
- Command Reference - Complete command documentation
- Examples - Practical usage examples
codebolt-cli login # Login to your account
codebolt-cli logout # End current session
codebolt-cli createagent # Create new agent (interactive)
codebolt-cli createagent --name "My Agent" # Create with name
codebolt-cli publishagent [path] # Publish agent to platform
codebolt-cli listagents # List your agents
codebolt-cli startagent [path] # Start agent locally
codebolt-cli pullagent [path] # Sync with platform
codebolt-cli cloneagent <id> [path] # Clone existing agent
codebolt-cli createtool # Create new tool (interactive)
codebolt-cli createtool --name "Tool" # Create with options
codebolt-cli runtool <command> <file> # Run tool command
codebolt-cli inspecttool <file> # Debug tool with MCP inspector
codebolt-cli version # Show CLI version
codebolt-cli --help # Show help information
The CLI organizes projects using the .codeboltAgents
directory:
your-project/
βββ .codeboltAgents/
β βββ agents/
β β βββ my-agent/
β β β βββ codeboltagent.yaml
β β β βββ package.json
β β β βββ index.js
β β β βββ src/
β β βββ another-agent/
β βββ tools/
β βββ my-tool/
β β βββ codebolttool.yaml
β β βββ package.json
β β βββ index.js
β βββ another-tool/
βββ your-project-files...
title: "My Agent"
description: "Agent description"
unique_id: "my-agent-id"
tags: ["tag1", "tag2"]
metadata:
agent_routing:
worksonblankcode: true
worksonexistingcode: true
supportedlanguages: ["javascript", "typescript"]
supportedframeworks: ["react", "express"]
sdlc_steps_managed:
- name: "Code Generation"
example_instructions:
- "Generate React component"
actions:
- name: "component"
description: "Generate component"
actionPrompt: "Create a new component"
name: "My Tool"
description: "Tool description"
version: "1.0.0"
uniqueName: "my-tool-id"
parameters:
rootPath:
type: "string"
description: "Root directory"
default: "./"
We welcome contributions! Please see our Contributing Guide for details.
git clone https://github.com/codeboltai/cli.git
cd cli
npm install
npm link
npm test
npm run test:watch
npm run lint
npm run format
# Create agent
codebolt-cli createagent --name "React Generator"
# Configure during interactive setup:
# - Languages: javascript, typescript
# - Frameworks: react, next.js
# - SDLC Steps: Code Generation
# - Actions: component, hook
# Test locally
codebolt-cli startagent ./.codeboltAgents/agents/react-generator
# Publish when ready
codebolt-cli publishagent ./.codeboltAgents/agents/react-generator
# Create tool with parameters
codebolt-cli createtool \
--name "File Manager" \
--id "file-manager" \
--description "Manages file operations" \
--parameters '{"rootPath": "./", "extensions": [".js", ".ts"]}'
# Test tool
codebolt-cli runtool list_files ./.codeboltAgents/tools/file-manager/index.js
# Debug if needed
codebolt-cli inspecttool ./.codeboltAgents/tools/file-manager/index.js
Authentication Error
Error: Not authenticated
Solution: Run codebolt-cli login
Agent Not Found
Error: Agent configuration not found
Solution: Ensure you're in the correct directory or specify the path
Tool Validation Error
Error: Invalid tool configuration
Solution: Check codebolttool.yaml
syntax and required fields
Enable verbose logging:
DEBUG=codebolt:* codebolt-cli <command>
This project is licensed under the ISC License - see the LICENSE file for details.
- Documentation: docs.codebolt.ai
- Platform: codebolt.ai
- GitHub: github.com/codeboltai/cli
- Discord: discord.gg/codebolt
- Support: [email protected]
Current version: 1.1.35
For version history and changelog, see CHANGELOG.md.