open-index/open-npm huggingface dataset:
npm package: @shellui/cli
Description: ShellUI CLI - Command-line tool for ShellUI
Author: ShellUI
Latest version: 0.2.0

# @shellui/cli

ShellUI CLI - Command-line tool for ShellUI

## Installation

```bash
npm install -g @shellui/cli
```

Or install as a dev dependency:

```bash
npm install --save-dev @shellui/cli
```

## Usage

```bash
shellui start [path/to/project] [--host]
shellui build [path/to/project]
```

### Commands

- **start** - Start the ShellUI development server

  ```bash
  shellui start
  shellui start ./my-project
  shellui start --host   # listen on 0.0.0.0 for network access
  ```

- **build** - Build the ShellUI application for production
  ```bash
  shellui build
  shellui build ./my-project
  ```

## Project Structure

The CLI is organized for maintainability with a clear separation of concerns:

```
src/
├── cli.js              # Main CLI orchestrator
├── commands/           # All commands in separate files
│   ├── index.js       # Command registry
│   ├── start.js       # Start command implementation
│   └── build.js       # Build command implementation
└── utils/             # Utility functions
    ├── index.js       # Utilities export
    ├── config.js      # Configuration loading
    └── vite.js        # Vite-specific utilities
```

## Development

### Adding a New Command

1. Create a new file in `src/commands/` (e.g., `new-command.js`)
2. Export a command function:

```javascript
export async function newCommandCommand(args) {
  // Command implementation
}
```

3. Register it in `src/cli.js`:

```javascript
import { newCommandCommand } from './commands/index.js';

cli.command('new-command [args]', 'Description').action(newCommandCommand);
```

4. Export it from `src/commands/index.js`:

```javascript
export { newCommandCommand } from './new-command.js';
```

See `src/commands/README.md` for more details.

## License

MIT
npm package: @shellui/core
Description: ShellUI Core - Core React application runtime
Author: ShellUI
Latest version: 0.2.0

# @shellui/core

ShellUI Core - Core React application runtime

## Installation

```bash
npm install @shellui/core
```

## Usage

This package contains the core React application for ShellUI. It's typically used by `@shellui/cli` and `@shellui/sdk`.

## License

MIT
npm package: @shellui/sdk
Description: ShellUI SDK - TypeScript/JavaScript SDK for ShellUI integration
Author: ShellUI
Latest version: 0.2.0

# @shellui/sdk

ShellUI SDK - JavaScript SDK for ShellUI integration

## Installation

```bash
npm install @shellui/sdk
```

## Usage

```javascript
import { init, getVersion } from '@shellui/sdk';

const sdk = init({
  /* config */
});
console.log(getVersion());
```

## License

MIT
npm package: @shellus/mjcli
Description: MJ Studio CLI - 命令行客户端
Latest version: 0.1.0

# @shellus/mjcli

MJ Studio 命令行客户端。

## 安装

```bash
npm install -g @shellus/mjcli
```

## 配置

```bash
export MJCLI_URL=https://your-domain.com
export MJCLI_KEY=mjs_xxxxxxxxxxxx
```

## 使用

```bash
# 列出模型
mjcli model ls
mjcli model ls -t image --pretty

# 列出助手
mjcli assistant ls --pretty

# AI 对话
mjcli chat "你好" -a 6
mjcli chat "继续" -a 6 -c 123

# 生成图片
mjcli image "一只猫" -m 244
mjcli image "风格转换" -m 244 -r ./photo.jpg --async

# 生成视频
mjcli video "日落延时" -m 79

# 查看任务
mjcli task ls -t image -s success -l 5 --pretty
mjcli task get 789 --pretty

# 上传文件
mjcli upload ./photo.jpg
```

## 输出模式

- **TTY（终端）**：自动使用人类可读格式
- **非 TTY（管道）**：自动输出紧凑 JSON，方便 `jq` 处理
- `--json`：强制 JSON 输出
- `--pretty`：强制人类可读输出