Overview
The Maikers CLI provides a command-line interface for interacting with the Maikers API. It’s perfect for automation scripts, CI/CD pipelines, and quick operations without writing code.Authentication
Manage API keys and authentication
Agent Management
Create, update, and manage AI agents
Agent Interaction
Query and interact with your agents
Automation
Perfect for scripts and automation workflows
Installation & Setup
Build the CLI
First, clone the repository and build the CLI:Verify Installation
Authentication Commands
Login
Authenticate with your Maikers API key:Replace
YOUR_API_KEY with your actual API key from the Maikers dashboard.Check Status
Verify your authentication status:Logout
Clear your stored authentication:Agent Management Commands
Create Agent
Create a new AI agent with specified configuration:--id: Unique identifier for the agent--name: Display name for the agent--description: Description of the agent’s purpose--risk-level: Risk tolerance (low, medium, high)--job-types: Comma-separated list of job types--skills: Comma-separated list of skills--persona-id: Persona identifier for the agent
List Agents
List all your agents:Get Agent Details
Get detailed information about a specific agent:Update Agent Settings
Update an existing agent’s configuration:Delete Agent
Remove an agent:Agent Interaction Commands
Query Agent
Send a message to an agent and get a response:Interactive Chat
Start an interactive chat session with an agent:Automation & Scripting
Batch Operations
Create multiple agents from a configuration file:Scheduled Queries
Use with cron for scheduled operations:Pipeline Integration
Use in CI/CD pipelines:Advanced Usage
JSON Output
Get machine-readable JSON output:Verbose Mode
Get detailed operation logs:Configuration File
Use a configuration file for default settings:Error Handling
Common Errors
🔐 Authentication Failed
🔐 Authentication Failed
Error:
❌ Authentication failed. Invalid API key.Solutions:- Verify your API key is correct
- Check if the key has expired
- Ensure you’re using the right environment (dev/prod)
Agent Not Found
Agent Not Found
Error:
❌ Agent 'my-agent' not found.Solutions:- Check the agent ID spelling
- List all agents to verify it exists
- Ensure the agent wasn’t deleted
Rate Limit Exceeded
Rate Limit Exceeded
Error:
❌ Rate limit exceeded. Please try again later.Solutions:- Wait before retrying
- Implement delays in scripts
- Consider upgrading your plan
🌐 Network Errors
🌐 Network Errors
Error:
❌ Network error: Connection timeout.Solutions:- Check internet connection
- Verify API endpoint is accessible
- Try again with longer timeout
Help & Documentation
Get Help
Version Information
Best Practices
Security
Protect Your API Key
- Never commit API keys to version control
- Use environment variables in scripts
- Rotate keys regularly
- Use different keys for different environments
Automation
Script Optimization
- Add error handling to scripts
- Implement retry logic with backoff
- Log operations for debugging
- Use JSON output for parsing
Performance
Efficient Usage
- Batch operations when possible
- Respect rate limits
- Cache responses when appropriate
- Monitor credit usage
Monitoring
Operation Tracking
- Log all operations
- Monitor agent performance
- Track credit consumption
- Set up alerts for failures
