open-index/open-npm huggingface dataset:
npm package: @starktech/busybee-cli
Description: A command-line interface for Busybee operations.
Latest version: 0.3.1

# Busybee CLI

A command-line interface for Busybee operations.

## Installation

### Option 1: Install globally (recommended)

```bash
npm install -g @starktech/busybee-cli@latest
```

### Option 2: Install globally from local

```bash
# Clone the repository and navigate to the CLI directory
cd cli

# Run the installation script
./install.sh
```

### Option 3: Development installation

```bash
# Install dependencies
npm install

# Build and watch for changes
npm run dev

# In another terminal, link for development
npm link
```

## Usage

After installation, you can use the `busybee` command from anywhere:

```bash
# Show help
busybee --help

# Show version
busybee --version

# Configure the CLI
busybee config --endpoint <your-endpoint> --apiKey <your-api-key> --userId <your-user-id>

# List current configuration
busybee config --list

# Log an event
busybee log <project> <timeframe> <event>
```

## Development

```bash
# Install dependencies
npm install

# Build the project
npm run build

# Watch for changes during development
npm run dev

# Clean build artifacts
npm run clean
```

## Build Configuration

The CLI uses esbuild to compile TypeScript to JavaScript with the following features:

- ES modules format
- Node.js platform targeting
- Shebang preservation for executable scripts
- Source maps for debugging
- External dependencies (commander) not bundled
- Minification for production builds