statamic/cli
Composer 安装命令:
composer require statamic/cli
包简介
Statamic CLI Tool
关键字:
README 文档
README
🌴 Install and manage your Statamic projects from the command line.
Installing the CLI tool
composer global require statamic/cli
Make sure to place Composer's system-wide vendor bin directory in your $PATH so the statamic executable can be located by your system. Here's how.
Once installed, you should be able to run statamic {command name} from within any directory.
GitHub authentication
When you install starter kits, the CLI might present you with a warning that the GitHub API limit is reached. Generate a Personal access token and paste it in your terminal with this command so Composer will save it for future use:
composer config --global --auth github-oauth.github.com [your_token_here]
Read more on this in the Composer Docs.
Updating the CLI tool
composer global update statamic/cli
Run this command to update the CLI tool to the most recent published version. If there's been a major version release, you may need to run require instead of update.
Using the CLI tool
Installing Statamic
You may create a new Statamic site with the new command:
statamic new my-site
This will present you with a list of supported starter kits to select from. Upon selection, the latest version will be downloaded and installed into the my-site directory.
You may also pass an explicit starter kit repo if you wish to skip the selection prompt:
statamic new my-site statamic/starter-kit-cool-writings
Checking Statamic versions
From within an existing Statamic project root directory, you may run the following command to quickly find out which version is being used.
statamic version
Updating Statamic
From within an existing Statamic project root directory, you may use the following command to update to the latest version.
statamic update
This is just syntactic sugar for the composer update statamic/cms --with-dependencies command.
statamic/cli 适用场景与选型建议
statamic/cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 91.28k 次下载、GitHub Stars 达 78, 最近一次更新时间为 2017 年 07 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「statamic」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 statamic/cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 statamic/cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 statamic/cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Statamic Fine Seo addon
A lightweight floating toolbar for Statamic that gives logged-in users quick access to the CP and entry editor
Instagram Feed And Stories addon for Statamic
A Statamic Addon to save Video How To's for your customers
MCP server for Statamic — manage entries, terms, and globals from AI clients over streamable HTTP.
统计信息
- 总下载量: 91.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 78
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-13