siluzan-website-cli 1.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # siluzan-website-cli
2
+
3
+ Siluzan **WordPress 站点管理** Skill CLI。安装后由 AI Agent 列出站点、新增/编辑页面、查看已装插件。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ npm install -g siluzan-website-cli
9
+ siluzan-website init --global --force
10
+ siluzan-website login
11
+ ```
12
+
13
+ 或使用 Skill 文档里的一键安装脚本。凭据与 `siluzan-cso` / `siluzan-tso` 共用 `~/.siluzan/config.json` 的 **API Key**(Skill 不使用 JWT)。
14
+
15
+ ## 常用命令
16
+
17
+ ```bash
18
+ siluzan-website sites list
19
+ siluzan-website pages list --site <guid>
20
+ siluzan-website pages add --site <guid> --title "关于我们" --content-file about.html
21
+ siluzan-website plugins list --site <guid>
22
+ siluzan-website plugins catalog --site <guid>
23
+ siluzan-website plugins install --site <guid> --slug <slug>
24
+ ```
25
+
26
+ 页面写入走站点上已有的 `zionbuilder/v1` visual-edit 接口(HTML → Builder)。插件安装 REST 尚未开放,本版只支持列出。
27
+
28
+ ## 开发
29
+
30
+ ```bash
31
+ cd website-cli
32
+ pnpm install
33
+ pnpm run build:test
34
+ node dist/index.js --help
35
+ ```
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node