buster/apps/cli
dal 68d93f1eba
migrate cli over to ts
2025-08-04 16:16:00 -06:00
..
scripts migrate cli over to ts 2025-08-04 16:16:00 -06:00
src migrate cli over to ts 2025-08-04 16:16:00 -06:00
CLAUDE.md migrate cli over to ts 2025-08-04 16:16:00 -06:00
README.md migrate cli over to ts 2025-08-04 16:16:00 -06:00
biome.json migrate cli over to ts 2025-08-04 16:16:00 -06:00
env.d.ts migrate cli over to ts 2025-08-04 16:16:00 -06:00
package.json migrate cli over to ts 2025-08-04 16:16:00 -06:00
tsconfig.json migrate cli over to ts 2025-08-04 16:16:00 -06:00
tsup.config.ts migrate cli over to ts 2025-08-04 16:16:00 -06:00
turbo.json migrate cli over to ts 2025-08-04 16:16:00 -06:00
vitest.config.ts migrate cli over to ts 2025-08-04 16:16:00 -06:00

README.md

Buster CLI

The official command-line interface for Buster, built with TypeScript, Commander.js, and Ink for a beautiful terminal experience.

Architecture

This CLI is designed as a thin client that communicates with the Buster server API. It handles:

  • File system operations (reading/writing YAML files)
  • API communication
  • Rich terminal UI using Ink (React for CLI)

Development

Setup

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

# Build the CLI
pnpm build

# Run tests
pnpm test

Commands

  • auth - Authenticate with Buster
  • init - Initialize a new Buster project
  • deploy - Deploy models to Buster
  • parse - Parse and validate YAML model files
  • config - Manage Buster configuration
  • update - Update CLI to the latest version
  • start - Start Buster services
  • stop - Stop Buster services
  • reset - Reset Buster services and data

Testing

# Run all tests
pnpm test

# Run unit tests only
pnpm test:unit

# Run integration tests
pnpm test:integration

# Watch mode
pnpm test:watch

Building Binaries

# Build binaries for all platforms
pnpm build:binary

This creates standalone executables for Linux, macOS, and Windows using Bun's compile feature.

Contributing

See CLAUDE.md for detailed development guidelines.