Overview
The FastSkill CLI provides a comprehensive command-line interface for managing skills, running the service, and performing administrative tasks. It’s designed for both development workflows and production operations.The CLI supports both interactive and scripting use cases, with comprehensive help text and validation for all commands.
Installation
The FastSkill CLI is included with the Python package:Basic Usage
Get Help
1
General help
2
Command-specific help
3
Interactive help
Global Options
| Option | Description | Example |
|---|---|---|
--version | Show version information | fastskill --version |
--verbose, -v | Enable verbose output | fastskill -v list |
--quiet, -q | Suppress non-error output | fastskill -q register skill.json |
--config | Specify configuration file | fastskill --config prod.json serve |
--log-level | Set logging level | fastskill --log-level DEBUG serve |
--help, -h | Show help information | fastskill --help |
Command Categories
Service Management
Commands for managing the FastSkill service lifecycle:fastskill init
Initialize a new FastSkill service with default configuration.
fastskill serve
Start the FastSkill service in server mode.
fastskill stop
Stop a running FastSkill service.
fastskill status
Check the status of a running FastSkill service.
fastskill restart
Restart the FastSkill service.
fastskill logs
View service logs and debugging information.
Skill Management
Commands for managing skills and their lifecycle:fastskill register
Register new skills from files or directories.
fastskill list
List all registered skills with filtering options.
fastskill validate
Validate skill definitions without registering them.
fastskill update
Update existing skill definitions.
fastskill enable/disable
Enable or disable skills.
fastskill remove
Remove skills from the service.
Discovery and Search
Commands for finding and analyzing skills:fastskill search
Search for skills using natural language queries.
fastskill find
Find skills by capabilities, tags, or other criteria.
fastskill route
Get intelligent routing recommendations.
fastskill analyze
Analyze skill usage patterns and performance.
Development Tools
Commands for development workflows:fastskill test
Run tests for skills and integrations.
fastskill bench
Benchmark skill performance and throughput.
fastskill profile
Profile skill execution for optimization.
fastskill debug
Debug skill execution and troubleshoot issues.
Configuration
Configuration Files
The CLI supports configuration files for common settings:Environment Variables
Common CLI settings can be configured via environment variables:Interactive Mode
The CLI supports interactive mode for guided workflows:- Step-by-step guided setup
- Interactive configuration
- Real-time validation
- Helpful suggestions and tips
Scripting and Automation
The CLI is designed for scripting and CI/CD integration:Batch Operations
JSON Output
Exit Codes
The CLI returns appropriate exit codes for scripting:| Code | Meaning | Example |
|---|---|---|
0 | Success | Command completed successfully |
1 | General error | Invalid arguments or configuration |
2 | Validation error | Invalid skill definition |
3 | Network error | Cannot connect to service |
4 | Timeout error | Command timed out |
5 | Permission error | Insufficient permissions |
Examples
Development Workflow
Production Deployment
CI/CD Integration
Global Configuration
Default Configuration Locations
The CLI looks for configuration in this order:--configoptionFASTSKILL_CONFIG_FILEenvironment variable./fastskill.json./fastskill.yaml~/.fastskill/config.json- Built-in defaults
Configuration Migration
Migrate between configuration formats:Troubleshooting
Common Issues
Command Not Found
Command Not Found
Path issue: Ensure FastSkill is installed and in your PATH.
Permission Errors
Permission Errors
File permissions: Ensure you have read/write permissions for skill directories.
Service permissions: Use
--user flag or run with appropriate privileges for system-wide operations.Network Issues
Network Issues
Port conflicts: Check if the default port (8080) is available.
Debug Mode
Enable debug mode for detailed troubleshooting:Performance Monitoring
Monitor CLI performance:Best Practices
1
Use configuration files
Store common settings in configuration files rather than command-line arguments for complex deployments.
2
Validate before deploying
Always use
--validate flag when registering skills in production environments.3
Use batch operations
Use batch operations for multiple skills to improve performance and reduce network overhead.
4
Monitor service health
Regularly check service status and logs to ensure optimal operation.
5
Backup before major changes
Create backups of skill definitions before making bulk changes or updates.
The CLI provides powerful operations that can modify your skill ecosystem. Always test in a development environment before applying changes to production.