Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 1.88 KB

File metadata and controls

75 lines (52 loc) · 1.88 KB

Caixuan CLI

English · 中文 · Français · Español · Deutsch · Русский · 日本語 · 한국어

Command-line tool for the Caixuan platform. Manage spaces, shares, documents, and space members from the terminal or in automation scripts.

Requirements

  • Node.js >= 18

Installation

npm install -g @caixuan-cc/cli

Authentication

# Browser OAuth (requires Web /cli/auth page)
caixuan login

# Or set token manually
caixuan config set-token <token>
caixuan config show

Configuration is stored in ~/.caixuan/config.json.

Environment overrides:

  • CAIXUAN_CONFIG_DIR — config directory
  • CAIXUAN_API_BASE — API base URL (default https://app.caixuan.cc/api)

Quick start

caixuan login
caixuan space list
caixuan space select <space-id>
caixuan share list --json
caixuan doc create --file ./deck.pptx
caixuan member list

Typical use cases

End-to-end examples (upload & share, password lock, expiry, paid access, invite members, CI publish, and more): docs/use-cases.md.

Command overview

Group Commands
Auth login, logout
Config config show, config set-token, config set-space, config set-api-base
Space space list, space current, space select, space get
Share share list, share get, share create, share update, share delete
Doc doc list, doc get, doc create, doc update, doc delete
Member member list, member get, member create, member update, member delete

JSON output (AI-agent friendly)

Pass --json on any command for structured output:

{
  "ok": true,
  "data": { ... },
  "meta": { "count": 42 }
}

License

MIT