@4everland/hosting-cli 中文文档教程
Hosting 为 4everland CLI 提供命令行界面,使您能够使用一组命令部署和管理项目。 这使您可以更轻松地使用终端或自动化系统与平台进行交互。 下面列出了 4everland CLI 中可用的命令和参数。
如果您想以编程方式与平台交互。 请查看 CLI API
Install
您可以通过运行 npm install -g @4everland/hosting-cli
命令来安装 4everland CLI。
npm install -g @4everland/hosting-cli
View Version
您可以通过运行 4everland-hosting -v
命令查看 4everland CLI 的当前版本。
4ever-hosting -v
Login
您可以通过 4everland CLI 运行 4ever-hosting login 命令登录您的托管帐户。
4ever-hosting login
Enter Token
您可以在托管设置中看到您的令牌。
登录成功后可进行以下操作:
- 项目部署
- 域操作
Deployment
要部署项目,请运行 4ever-hosting deploy
命令。
4ever-hosting deploy
Domain
要绑定域,请运行 4ever-hosting domain -a
命令。
4ever-hosting domain -a
Adding an A Record
请根据 'value'
和 'type'
在控制台完成域名绑定流程。 值为 '139.95.1.121'
Adding a CNAME Record
请根据 'value'
和 'type'
。 值为 'cname.ddnsweb3.com'
View Domain List
您可以通过运行 4ever-hosting domain -ls
命令查看当前项目的域列表
4ever-hosting domain -ls
Validate Domain
设置'值'后,请验证域是否通过运行 4ever-hosting domain -c
命令正确绑定
4ever-hosting domain -c
CLI Documentation
Introduction
Hosting offers a command-line interface for the 4everland CLI, which enables you to deploy and manage projects with a set of commands. This makes it easier for you to interact with the platform using a terminal or automated system. The commands and parameters available in the 4everland CLI are listed below.
If you want to programmatically interact with the platform. Please check out the CLI API
Install
You can install the 4everland CLI by running the 'npm install -g @4everland/hosting-cli' command.
npm install -g @4everland/hosting-cli
View Version
You can view the current version of the 4everland CLI by running the '4ever-hosting -v' command.
4ever-hosting -v
Login
You can login your Hosting account via the 4everland CLI by running the '4ever-hosting login' command.
4ever-hosting login
Enter Token
You can see your token in the Hosting setting.
The following operations are available only after successful login:
Project Deployment
Domain Operation
Deployment
To deploy a project, please run the '4ever-hosting deploy' command.
4ever-hosting deploy
Domain
To bind the domain, please run the '4ever-hosting domain -a' command.
4ever-hosting domain -a
Adding an A Record
Please complete the domain binding procedure in the console based on the 'value' and 'type'. value is '139.95.1.121'
Adding a CNAME Record
Please complete the domain binding procedure in the console based on the 'value' and 'type'. value is 'cname.ddnsweb3.com'
View Domain List
You can view the domain list for the current project by running the '4ever-hosting domain -ls' command
4ever-hosting domain -ls
Validate Domain
After setting the 'value', please validate if the domain is correctly bound by running the '4ever-hosting domain -c' command
4ever-hosting domain -c