Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: npx vp check
- run: npx vp test run
- run: npx vp pack
- run: node dist/cli.mjs --help
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
distribution/
dist/
*.tsbuildinfo
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,49 +40,49 @@ listenhub tts create --text "Hello, world" --lang en

### Auth

| Command | Description |
|---------|-------------|
| `listenhub auth login` | Log in via browser OAuth |
| Command | Description |
| ----------------------- | ------------------------- |
| `listenhub auth login` | Log in via browser OAuth |
| `listenhub auth logout` | Log out and revoke tokens |
| `listenhub auth status` | Show current login status |

### Music

| Command | Description |
|---------|-------------|
| `listenhub music generate` | Generate music from a text prompt |
| `listenhub music cover` | Create a cover from reference audio |
| `listenhub music list` | List music tasks |
| `listenhub music get <id>` | Get music task details |
| Command | Description |
| -------------------------- | ----------------------------------- |
| `listenhub music generate` | Generate music from a text prompt |
| `listenhub music cover` | Create a cover from reference audio |
| `listenhub music list` | List music tasks |
| `listenhub music get <id>` | Get music task details |

### Content Creation

| Command | Description |
|---------|-------------|
| `listenhub podcast create` | Create a podcast episode |
| `listenhub podcast list` | List podcast episodes |
| `listenhub tts create` | Create text-to-speech audio |
| `listenhub tts list` | List TTS creations |
| `listenhub explainer create` | Create an explainer video |
| `listenhub explainer list` | List explainer videos |
| `listenhub slides create` | Create a slide deck |
| `listenhub slides list` | List slide decks |
| Command | Description |
| ---------------------------- | --------------------------- |
| `listenhub podcast create` | Create a podcast episode |
| `listenhub podcast list` | List podcast episodes |
| `listenhub tts create` | Create text-to-speech audio |
| `listenhub tts list` | List TTS creations |
| `listenhub explainer create` | Create an explainer video |
| `listenhub explainer list` | List explainer videos |
| `listenhub slides create` | Create a slide deck |
| `listenhub slides list` | List slide decks |

### Images

| Command | Description |
|---------|-------------|
| `listenhub image create` | Generate an AI image |
| `listenhub image list` | List AI images |
| `listenhub image get <id>` | Get image details |
| Command | Description |
| -------------------------- | -------------------- |
| `listenhub image create` | Generate an AI image |
| `listenhub image list` | List AI images |
| `listenhub image get <id>` | Get image details |

### Other

| Command | Description |
|---------|-------------|
| `listenhub speakers list` | List available speakers |
| `listenhub creation get <id>` | Get creation details |
| `listenhub creation delete <id...>` | Delete creations |
| Command | Description |
| ----------------------------------- | ----------------------- |
| `listenhub speakers list` | List available speakers |
| `listenhub creation get <id>` | Get creation details |
| `listenhub creation delete <id...>` | Delete creations |

Run `listenhub <command> --help` for full options.

Expand Down
56 changes: 28 additions & 28 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,49 +40,49 @@ listenhub tts create --text "你好世界" --lang zh

### 认证

| 命令 | 说明 |
|------|------|
| `listenhub auth login` | 浏览器 OAuth 登录 |
| `listenhub auth logout` | 登出并撤销 token |
| `listenhub auth status` | 查看登录状态 |
| 命令 | 说明 |
| ----------------------- | ----------------- |
| `listenhub auth login` | 浏览器 OAuth 登录 |
| `listenhub auth logout` | 登出并撤销 token |
| `listenhub auth status` | 查看登录状态 |

### 音乐

| 命令 | 说明 |
|------|------|
| 命令 | 说明 |
| -------------------------- | -------------------- |
| `listenhub music generate` | 根据文字描述生成音乐 |
| `listenhub music cover` | 用参考音频创建翻唱 |
| `listenhub music list` | 列出音乐任务 |
| `listenhub music get <id>` | 查看音乐任务详情 |
| `listenhub music cover` | 用参考音频创建翻唱 |
| `listenhub music list` | 列出音乐任务 |
| `listenhub music get <id>` | 查看音乐任务详情 |

### 内容创作

| 命令 | 说明 |
|------|------|
| `listenhub podcast create` | 创建播客 |
| `listenhub podcast list` | 列出播客 |
| `listenhub tts create` | 创建语音合成 |
| `listenhub tts list` | 列出语音合成 |
| 命令 | 说明 |
| ---------------------------- | ------------ |
| `listenhub podcast create` | 创建播客 |
| `listenhub podcast list` | 列出播客 |
| `listenhub tts create` | 创建语音合成 |
| `listenhub tts list` | 列出语音合成 |
| `listenhub explainer create` | 创建讲解视频 |
| `listenhub explainer list` | 列出讲解视频 |
| `listenhub slides create` | 创建幻灯片 |
| `listenhub slides list` | 列出幻灯片 |
| `listenhub explainer list` | 列出讲解视频 |
| `listenhub slides create` | 创建幻灯片 |
| `listenhub slides list` | 列出幻灯片 |

### 图片

| 命令 | 说明 |
|------|------|
| `listenhub image create` | AI 生图 |
| `listenhub image list` | 列出图片 |
| 命令 | 说明 |
| -------------------------- | ------------ |
| `listenhub image create` | AI 生图 |
| `listenhub image list` | 列出图片 |
| `listenhub image get <id>` | 查看图片详情 |

### 其他

| 命令 | 说明 |
|------|------|
| `listenhub speakers list` | 列出可用声音 |
| `listenhub creation get <id>` | 查看作品详情 |
| `listenhub creation delete <id...>` | 删除作品 |
| 命令 | 说明 |
| ----------------------------------- | ------------ |
| `listenhub speakers list` | 列出可用声音 |
| `listenhub creation get <id>` | 查看作品详情 |
| `listenhub creation delete <id...>` | 删除作品 |

每个命令都可以加 `--help` 查看完整选项。

Expand Down
84 changes: 43 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
{
"name": "@marswave/listenhub-cli",
"version": "0.0.3",
"description": "Command-line interface for ListenHub",
"repository": "marswaveai/listenhub-cli",
"type": "module",
"bin": {
"listenhub": "distribution/source/cli.js"
},
"files": [
"distribution/source"
],
"license": "MIT",
"scripts": {
"prepublishOnly": "pnpm run build",
"clean": "del-cli distribution",
"dev": "pnpm run clean && tsc --watch",
"build": "pnpm run clean && tsc && chmod +x distribution/source/cli.js",
"pretest": "pnpm run build",
"test": "xo"
},
"dependencies": {
"@marswave/listenhub-sdk": "^0.0.4",
"commander": "^14.0.3",
"open": "^10.0.0",
"ora": "^8.0.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^8.1.0",
"@types/node": "^25.5.0",
"del-cli": "^7.0.0",
"typescript": "^6.0.2",
"xo": "^2.0.2"
},
"engines": {
"node": ">=20"
},
"pnpm": {
"overrides": {
"typescript": "^6.0.2"
}
}
"name": "@marswave/listenhub-cli",
"version": "0.0.3",
"description": "Command-line interface for ListenHub",
"license": "MIT",
"repository": "marswaveai/listenhub-cli",
"bin": {
"listenhub": "dist/cli.mjs"
},
"files": [
"dist"
],
"type": "module",
"scripts": {
"dev": "vp pack --watch",
"build": "vp pack",
"lint": "vp lint",
"lint:fix": "vp lint --fix",
"fmt": "vp fmt",
"fmt:check": "vp fmt --check",
"check": "vp check",
"test": "vp test run",
"test:watch": "vp test",
"ready": "vp check && vp test run",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@marswave/listenhub-sdk": "^0.0.4",
"commander": "^14.0.3",
"open": "^10.0.0",
"ora": "^8.0.0"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^8.1.0",
"@types/node": "^25.5.0",
"typescript": "^5.9.3",
"vite": "^8.0.3",
"vite-plus": "^0.1.18",
"vitest": "^4.0.0"
},
"engines": {
"node": ">=20"
},
"packageManager": "pnpm@10.32.1"
}
Loading
Loading