Alexandria CLI - Unified Context Management
npm install @a24z/alexandria-cliUnified Context Management CLI for the a24z ecosystem. This tool provides command-line access to manage codebase views, documentation, and project context using the Alexandria knowledge management system.
``bashUsing npm
npm install -g @a24z/alexandria-cli
Dependencies
This CLI depends on the
@a24z/core-library package which provides the core MemoryPalace functionality.Usage
$3
`bash
alexandria init
`$3
`bash
alexandria status
`$3
`bash
List all views
alexandria listValidate a view
alexandria validate Save a new view
alexandria save Add documentation as a view
alexandria add-doc
`$3
`bash
Register a project
alexandria projects registerList registered projects
alexandria projects list
`$3
`bash
Check context coverage
alexandria coverage
`$3
`bash
Start the Alexandria API server
alexandria outpost startCheck server status
alexandria outpost statusStop the server
alexandria outpost stop
`Development
This project uses Bun for package management and building.
$3
`bash
Install dependencies
bun installBuild the project
bun run buildRun tests
bun test
`$3
`
alexandria-cli/
├── src/
│ ├── index.ts # Main CLI entry point
│ ├── commands/ # CLI command implementations
│ ├── utils/ # Utility functions
│ ├── api/ # API server implementation
│ └── templates/ # Template files
├── tests/ # Test files
├── build/ # Build scripts
└── dist/ # Compiled output
``MIT
Contributions are welcome! Please feel free to submit a Pull Request.