@wps365-open/wps365
v0.2.17
Published
WPS 365 Open Platform CLI — dynamic command surface from OpenAPI specs
Downloads
1,451
Readme
安装
npx 直接运行(推荐)
npx @wps365-open/wps365 --version全局安装
npm install -g @wps365-open/wps365
wps365 --version支持平台
| 平台 | 架构 | 目标三元组 |
|------|------|-----------|
| macOS | Apple Silicon (M1/M2/M3/M4) | aarch64-apple-darwin |
| macOS | Intel | x86_64-apple-darwin |
| Linux | x86_64 | x86_64-unknown-linux-gnu |
| Linux | arm64 | aarch64-unknown-linux-gnu |
| Windows | x86_64 | x86_64-pc-windows-gnu |
| Windows | arm64 | aarch64-pc-windows-gnu |
安装时会自动选择当前平台对应的预编译二进制,无需手动配置。
快速开始
# 1. 用户授权(Cookie 方式,保存凭证到本地)
wps365 auth cookie-login --wps-sid '你的 wps_sid 值'
# 2. 调用 API
wps365 calendar list-calendars
# 3. 查看所有可用命令
wps365 --help如何获取 wps_sid:在浏览器中登录 WPS 365,打开开发者工具(F12)→ Application → Cookies,找到
wps_sid的值。
从源码构建(含内部扩展)
# 构建(当前平台)
BUILD_TAGS=with_extension make build
# 安装到 $GOPATH/bin
BUILD_TAGS=with_extension make install发布到 npm
# 1. 升版本(自动修改 cmd/wps365-cli/main.go 中的 version)
make bump-patch # 0.2.0 → 0.2.1
# 2. 构建全平台(自动包含 with_extension)
make build-all
# 3. 预览发布内容
make npm-publish-dry-run
# 4. 正式发布
make npm-publishLicense
MIT
