mrrobot47/site-command

安装: 113

依赖者: 1

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 28

类型:ee-cli-package

v2.6.2 2020-08-20 09:17 UTC

This package is not auto-updated.

Last update: 2024-10-02 20:25:21 UTC


README

Build Status

快速链接: 使用 | 贡献 | 支持

使用

此包实现了以下命令

ee site create --type=html

运行标准的HTML站点安装。

ee site create --type=html <site-name> [--ssl=<value>] [--wildcard] [--type=<type>] [--skip-status-check]

选项

<site-name>
	Name of website.

[--ssl=<value>]
	Enables ssl via letsencrypt certificate.

[--wildcard]
	Gets wildcard SSL .

[--type=<type>]
	Type of the site to be created. Values: html,php,wp etc.

[--skip-status-check]
	Skips site status check.

示例

# Create html site
$ ee site create example.com

# Create html site with ssl from letsencrypt
$ ee site create example.com --ssl=le

# Create html site with wildcard ssl
$ ee site create example.com --ssl=le --wildcard

# Create html site with self signed certificate
$ ee site create example.com --ssl=self

ee site delete

删除一个网站。

ee site delete <site-name> [--yes]

选项

<site-name>
	Name of website to be deleted.

[--yes]
	Do not prompt for confirmation.

示例

# Delete site
$ ee site delete example.com

ee site update

支持更新和升级网站。

ee site update [<site-name>] [--ssl=<ssl>] [--wildcard]
[<site-name>]
	Name of the site.

[--ssl=<ssl>]
	Enable ssl on site

[--wildcard]
	Enable wildcard SSL on site.

示例

# Add SSL to non-ssl site
$ ee site update example.com --ssl=le

# Add SSL to non-ssl site
$ ee site update example.com --ssl=le --wildcard

# Add self-signed SSL to non-ssl site
$ ee site update example.com --ssl=self

ee site create --type=html

运行标准的HTML站点安装。

ee site create --type=html <site-name> [--ssl=<value>] [--wildcard] [--type=<type>] [--skip-status-check]

选项

<site-name>
	Name of website.

[--ssl=<value>]
	Enables ssl via letsencrypt certificate.

[--wildcard]
	Gets wildcard SSL .

[--type=<type>]
	Type of the site to be created. Values: html,php,wp etc.

[--skip-status-check]
	Skips site status check.

示例

# Create html site
$ ee site create example.com

# Create html site with ssl from letsencrypt
$ ee site create example.com --ssl=le

# Create html site with wildcard ssl
$ ee site create example.com --ssl=le --wildcard

# Create html site with self signed certificate
$ ee site create example.com --ssl=self

ee site enable

启用一个网站。如果它们停止,将启动网站的docker容器。

ee site enable [<site-name>] [--force] [--verify]

选项

[<site-name>]
	Name of website to be enabled.

[--force]
	Force execution of site enable.

[--verify]
	Verify if required global services are working.

示例

# Enable site
$ ee site enable example.com

# Enable site with verification of dependent global services. (Note: This takes longer time to enable the
site.)
$ ee site enable example.com --verify

# Force enable a site.
$ ee site enable example.com --force

ee site disable

禁用一个网站。如果它们正在运行,将停止并移除网站的docker容器。

ee site disable [<site-name>]

选项

[<site-name>]
	Name of website to be disabled.

示例

# Disable site
$ ee site disable example.com

ee site ssl

验证ssl挑战,并在(过期时)续订证书。

ee site ssl <site-name> [--force]

选项

<site-name>
	Name of website.

[--force]
	Force renewal.

ee site info

显示所有相关站点信息、凭据和有用链接。

ee site info [<site-name>]
[<site-name>]
	Name of the website whose info is required.

示例

# Display site info
$ ee site info example.com

ee site list

列出创建的网站。

ee site list [--enabled] [--disabled] [--format=<format>]

摘要列表

[--enabled]
	List only enabled sites.

[--disabled]
	List only disabled sites.

[--format=<format>]
	Render output in a particular format.
	---
	default: table
	options:
	  - table
	  - csv
	  - yaml
	  - json
	  - count
	  - text
	---

示例

# List all sites
$ ee site list

# List enabled sites
$ ee site list --enabled

# List disabled sites
$ ee site list --disabled

# List all sites in JSON
$ ee site list --format=json

# Count all sites
$ ee site list --format=count

ee site reload --type=html

运行标准的HTML站点安装。

ee site reload --type=html <site-name> [--ssl=<value>] [--wildcard] [--type=<type>] [--skip-status-check]

选项

<site-name>
	Name of website.

[--ssl=<value>]
	Enables ssl via letsencrypt certificate.

[--wildcard]
	Gets wildcard SSL .

[--type=<type>]
	Type of the site to be created. Values: html,php,wp etc.

[--skip-status-check]
	Skips site status check.

示例

# Create html site
$ ee site create example.com

# Create html site with ssl from letsencrypt
$ ee site create example.com --ssl=le

# Create html site with wildcard ssl
$ ee site create example.com --ssl=le --wildcard

# Create html site with self signed certificate
$ ee site create example.com --ssl=self

ee site restart --type=html

运行标准的HTML站点安装。

ee site restart --type=html <site-name> [--ssl=<value>] [--wildcard] [--type=<type>] [--skip-status-check]

选项

<site-name>
	Name of website.

[--ssl=<value>]
	Enables ssl via letsencrypt certificate.

[--wildcard]
	Gets wildcard SSL .

[--type=<type>]
	Type of the site to be created. Values: html,php,wp etc.

[--skip-status-check]
	Skips site status check.

示例

# Create html site
$ ee site create example.com

# Create html site with ssl from letsencrypt
$ ee site create example.com --ssl=le

# Create html site with wildcard ssl
$ ee site create example.com --ssl=le --wildcard

# Create html site with self signed certificate
$ ee site create example.com --ssl=self

ee site share

使用ngrok在线共享一个网站。

ee site share <site-name> [--disable] [--refresh] [--token=<token>]

选项

<site-name>
	Name of website.

[--disable]
	Take online link down.

[--refresh]
	Refresh site share if link has expired.

[--token=<token>]
	ngrok token.

示例

# Share a site online
$ ee site share example.com

# Refresh shareed link if expired
$ ee site share example.com --refresh

# Disable online link
$ ee site share example.com --disable

ee site clean

清除网站的对象和页面缓存。

ee site clean [<site-name>] [--page] [--object]

选项

[<site-name>]
	Name of website to be enabled.

[--page]
	Clear page cache.

[--object]
	Clear object cache.

示例

# Clear Both cache type for site.
$ ee site clean example.com

# Clear Object cache for site.
$ ee site clean example.com --object

# Clear Page cache for site.
$ ee site clean example.com --page

贡献

我们感谢您主动为这个项目做出贡献。

贡献不仅仅限于代码。我们鼓励您以最适合您能力的方式贡献,例如编写教程、在当地的聚会中进行演示、帮助其他用户解决支持问题或修订我们的文档。

报告错误

认为您发现了一个错误?我们希望您能帮助我们修复它。

在您创建新的问题之前,您应该 搜索现有问题,看看是否已有现有的解决方案,或者是否已在较新版本中修复。

一旦您进行了一些搜索并发现没有为您的错误打开或修复的问题,请 创建一个新问题。尽可能提供详细信息,并在可能的情况下提供明确的重现步骤。

创建拉取请求

想要贡献一个新功能?请首先 打开一个新问题,讨论该功能是否适合该项目。

支持

GitHub问题不是用于一般支持问题的,但您可以尝试其他场所: https://easyengine.io/support/

此README.md是使用 ee scaffold package-readmedoc)从项目的代码库动态生成的。要提出建议,请提交对代码库相应部分的拉取请求。