@cortex.md/cli
v0.1.2
Published
Official CLI for Cortex plugin and theme development
Maintainers
Readme
Cortex CLI
Official command-line tool for developing plugins and themes for Cortex.
Features
- Plugin Development: Create, build, validate, and publish plugins
- Theme Development: Create and manage custom themes
- GitHub Integration: Automated publishing with GitHub releases
- Developer Experience: Hot reload, validation, and diagnostics
- Registry Management: Search, install, and update plugins/themes
Installation
Via npm (recommended)
npm install -g @cortex.md/cli From source
git clone https://github.com/cortex/cli
cd cli
make build
make installQuick Start
Create a Plugin
cortex plugin create my-awesome-plugin
cd my-awesome-plugin
bun install
bun run devCreate a Theme
cortex theme create my-theme
cd my-themeAuthenticate with GitHub
cortex loginBuild and Validate
cortex plugin build
cortex plugin validatePublish
cortex plugin publishCommands
Global
cortex init- Initialize a new project interactivelycortex login- Authenticate with GitHubcortex logout- Remove stored credentials
Plugin
cortex plugin create [name]- Create a new plugincortex plugin dev- Start development mode with hot reloadcortex plugin build- Build plugin for productioncortex plugin validate- Validate plugin structure and securitycortex plugin doctor- Run diagnosticscortex plugin publish- Publish to registrycortex plugin link- Link for local developmentcortex plugin unlink- Unlink development plugincortex plugin search [query]- Search registrycortex plugin install [id]- Install from registrycortex plugin update [id]- Update installed plugin
Theme
cortex theme create [name]- Create a new theme
Development
Build
make buildTest
make testFormat
make fmtLint
make lintArchitecture
apps/cli/
cmd/cortex/ Entry point
internal/
app/ Command wiring
auth/ GitHub device flow
config/ Global configuration
dev/ Development workflow
fsx/ Filesystem utilities
github/ GitHub API integration
plugin/ Plugin operations
registry/ Registry integration
theme/ Theme operations
ux/ Terminal output
pkg/
manifest/ Manifest parsing
semver/ Semantic versioning
zipx/ Archive operationsLicense
MIT
