anax / anax-cli
Anax CLI 工具。
v1.2.1
2019-03-19 09:16 UTC
README
一个用于与 Anax 网站一起工作的 CLI 客户端,使用 bash 构建。
安装
这是下载和安装脚本的方式。您可以在src/install.bash
中查看安装脚本的详细内容。
bash -c "$(curl https://raw.githubusercontent.com/canax/anax-cli/master/src/install.bash)"
或者像这样。
curl https://raw.githubusercontent.com/canax/anax-cli/master/src/install.bash | bash
使用 composer 进行安装。
composer require anax/anax-cli
使用方法
通过检查版本来确认脚本是否正常工作。
$ anax version
v1.1.11 (2018-10-31)
检查可以使用脚本执行的操作。
$ anax help
Utility to work with Anax web sites. Read more on:
https://dbwebb.se/anax-cli/
Usage: anax [options] <command> [arguments]
Command:
check Check and display details on local environment.
config Create base for configuration in $HOME/.anax/.
create <dir> <template> Create a new site in dir using a template.
help Show info on how to use it.
list List available templates for scaffolding from.
list <template> List details on specific scaffolding template.
selfupdate Update to latest version.
version Show info on how to use it.
Options:
--help, -h Show info on how to use it.
--version, -v Show info on how to use it.
--force, -f Force operation even though it should not.
脚手架
列出可构建的可用模板。
anax list
列出模板的详细信息,例如 anax-flat-site
。
anax list anax-flat-site
使用所选模板构建网站,并将其全部保存到 dir
目录中。
anax create dir anax-flat-site
网站已构建,您可以通过打开 dir/htdocs
来在网页浏览器中打开网站。
处理脚本
在构建过程中会执行一些脚本,这些脚本通常与每个模块一起提供以执行构建。
这些脚本的基目录为 .anax
。
构建模板
用于构建的模板位于 anax/scaffold
。
特定模板位于该仓库的 scaffold/template-name 下。例如,您可以查看用于 anax-flat-site
的模板。
许可证
此软件携带 MIT 许可证。
.
..: Copyright (c) 2013 - 2018 Mikael Roos, mos@dbwebb.se