siluzan-website-cli 1.0.1-beta.1 → 1.0.1-beta.10
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 +30 -4
- package/dist/index.js +2791 -236
- package/dist/skill/SKILL.md +47 -19
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/content.md +39 -0
- package/dist/skill/references/media.md +11 -0
- package/dist/skill/references/pages.md +12 -0
- package/dist/skill/references/plugins.md +66 -15
- package/dist/skill/references/provision.md +104 -0
- package/dist/skill/references/search.md +12 -0
- package/dist/skill/references/sites.md +8 -3
- package/dist/skill/references/terms.md +14 -0
- package/dist/skill/references/zasp-recommender.md +256 -0
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# siluzan-website-cli
|
|
2
2
|
|
|
3
|
-
Siluzan **WordPress
|
|
3
|
+
Siluzan **WordPress 站点开通与管理** Skill CLI。安装后由 AI Agent 选套餐/模板开通站点,以及列出站点、新增/编辑页面、安装 / 升级 / 卸载插件。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -12,18 +12,44 @@ siluzan-website login
|
|
|
12
12
|
|
|
13
13
|
或使用 Skill 文档里的一键安装脚本。凭据与 `siluzan-cso` / `siluzan-tso` 共用 `~/.siluzan/config.json` 的 **API Key**(Skill 不使用 JWT)。
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## 开通建站
|
|
16
|
+
|
|
17
|
+
对话顺序:**`templates catalog --json-out` → `present_website_templates(groups_path=…)` → `present_website_provision_form`(试用)→ create**。
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
siluzan-website templates catalog --json-out /mnt/user-data/workspace/template-catalog.json
|
|
21
|
+
# 随后调用内置工具 present_website_templates(groups_path=…)
|
|
22
|
+
siluzan-website templates get --id <siteTemplateId>
|
|
23
|
+
siluzan-website trial status
|
|
24
|
+
siluzan-website sites create --name "Acme" --region US --package <id> --template <id> --site-lang en_US --admin-lang en_US [--wait]
|
|
25
|
+
siluzan-website sites status --site <guid> --region US
|
|
26
|
+
siluzan-website sites bind --site <guid> --region US --name "Acme"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
开通走主站 `/website-provision/*`(API Key)。对话 SOP 见 Skill `references/provision.md`。
|
|
30
|
+
|
|
31
|
+
## 常用运维命令
|
|
16
32
|
|
|
17
33
|
```bash
|
|
18
34
|
siluzan-website sites list
|
|
19
35
|
siluzan-website pages list --site <guid>
|
|
20
36
|
siluzan-website pages add --site <guid> --title "关于我们" --content-file about.html
|
|
37
|
+
siluzan-website content list --site <guid> --type posts
|
|
38
|
+
siluzan-website media upload --site <guid> --file ./hero.png
|
|
39
|
+
siluzan-website search --site <guid> --q "关于我们"
|
|
21
40
|
siluzan-website plugins list --site <guid>
|
|
22
|
-
siluzan-website plugins catalog
|
|
41
|
+
siluzan-website plugins catalog
|
|
23
42
|
siluzan-website plugins install --site <guid> --slug <slug>
|
|
43
|
+
siluzan-website plugins install --site <guid> --zip ./plugin.zip
|
|
44
|
+
siluzan-website plugins update --site <guid> --plugin <plugin>
|
|
45
|
+
siluzan-website plugins uninstall --site <guid> --plugin <plugin>
|
|
46
|
+
siluzan-website plugins helper-status --site <guid>
|
|
47
|
+
siluzan-website zasp settings --site <guid>
|
|
48
|
+
siluzan-website zasp set --site <guid> --set related_enabled=1
|
|
49
|
+
siluzan-website zasp sync --site <guid>
|
|
24
50
|
```
|
|
25
51
|
|
|
26
|
-
页面写入走站点上已有的 `zionbuilder/v1` visual-edit 接口(HTML → Builder
|
|
52
|
+
页面写入走站点上已有的 `zionbuilder/v1` visual-edit 接口(HTML → Builder)。插件:目录用 `--slug`,外部用 `--zip`;卸载用 `uninstall --plugin`(helper / oauth2 不允许);helper 太旧时会先从镜像本地 zip 升级。`zasp-smart-recommender` 装完后用 `zasp settings / set / sync` 配相关推荐和 AI/向量,不要手写 curl。
|
|
27
53
|
|
|
28
54
|
## 开发
|
|
29
55
|
|