Command-line interface for BlackRoad OS
| Property | Value |
|---|---|
| Runtime | Node.js 18+ |
| Binary | br / blackroad |
| Package | @blackroad/cli |
| Type | CLI Tool |
# Global install
npm install -g @blackroad/cli
# Or run directly
npx @blackroad/cli
# Development
npm install
npm linkbr --help # Show all commands
br status # System status
br agents # List agents
br agents:wake # Wake an agent
br deploy # Deploy to cloud
br mesh # Check infrastructure mesh
br memory # Memory operationsbin/
└── br.js # Main entry point
src/
├── commands/ # CLI commands
├── utils/ # Helpers
├── config/ # Configuration
└── api/ # API client
lib/
└── ... # Compiled output
npm run dev # Watch mode
npm run build # Build
npm run test # Run tests
npm run lint # Lint checkAdding a new command:
// src/commands/mycommand.js
export default {
name: 'mycommand',
description: 'Does something cool',
options: [
{ flag: '-v, --verbose', description: 'Verbose output' }
],
action: async (options) => {
// Command logic
}
}Config file: ~/.blackroadrc or ~/.config/blackroad/config.json
{
"apiUrl": "https://api.blackroad.io",
"defaultOrg": "blackboxprogramming",
"theme": "dark"
}BLACKROAD_API_KEY= # API authentication
BLACKROAD_ORG= # Default organization
BLACKROAD_DEBUG=1 # Enable debug loggingnpm version patch
npm publish --access publicblackroad-os-web- Web interfaceblackroad-os-core- Core engineblackroad-os-docs- Documentation