@ directus/cli (英语)
用于在实例间移动 Directus 策略和配置的命令行工具.
说明
同步计划和配置(数据模型、角色、政策、权限、流量、仪表板、设置等) Directus通过 JSON 文件可以承诺 git 。 从源实例中提取快照, 准确预览 目标上有什么变化,然后推 将工作从装配转向生产,使环境步入正轨,或审查 在牵引请求中, 每一次更改为实例 .
有关Directus的更多信息,请访问 官方网站 (简体中文)。 。 。 .
安装
npm install -g @directus/cli
此安装 d6s 命令(和 directus-cli 作为更长的别名).
使用量
d6s profile add staging # name an instance URL and save a credential for it
d6s sync pull --from staging # snapshot schema + configuration into committed files
d6s sync diff --to production # read-only preview of exactly what a push would do
d6s sync push --to production # apply the committed files to the target
d6s sync # interactive wizard: pull → push
运行 d6s --help ,或读取
环境同步指南 用于工作流程,CI设置,以及每个旗帜.
兼容性
要求Directus 12.2.0 或以后。 CLI 独立于 Directus 版本, 所以你不需要匹配版本 数字介于 CLI 和您实例之间.
许可证
这个包裹根据麻省理工学院的许可证获得许可. 见 自由主义 文档以获取更多信息.