You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 39bfae2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cmd/agency_hosting/website_setups/create.go
+2-12Lines changed: 2 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ var CreateCmd = &cobra.Command{
18
18
Long: "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` — omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
@@ -33,13 +33,11 @@ var CreateCmd = &cobra.Command{
33
33
}
34
34
35
35
funcinit() {
36
-
CreateCmd.Flags().StringP("clone", "", "", "Clone the new website from an existing website (JSON)")
37
36
CreateCmd.Flags().StringP("datacenter-code", "", "", "Datacenter code where the website should be provisioned. Available codes depend on live capacity and are not a fixed set.")
38
-
CreateCmd.Flags().StringP("derive-domain", "", "", "Derive the domain from an existing vhost (JSON)")
39
37
CreateCmd.Flags().StringP("domain", "", "", "Primary domain to attach to the website. Omit or set to null to get a free auto-generated *.hostingersite.com subdomain instead.")
40
38
CreateCmd.Flags().StringP("flavor", "", "", "Setup flavor: a specific WordPress version in the format `wp-<major>.<minor>` or `wp-<major>.<minor>.<patch>` (e.g. `wp-6.8.2`), or `php-fpm` for a plain PHP stack. Generic versions like `wp-latest` are not allowed.")
--clone string Clone the new website from an existing website (JSON)
33
32
--datacenter-code string Datacenter code where the website should be provisioned. Available codes depend on live capacity and are not a fixed set.
34
-
--derive-domain string Derive the domain from an existing vhost (JSON)
35
33
--domain string Primary domain to attach to the website. Omit or set to null to get a free auto-generated *.hostingersite.com subdomain instead.
36
34
--flavor wp-<major>.<minor> Setup flavor: a specific WordPress version in the format wp-<major>.<minor> or `wp-<major>.<minor>.<patch>` (e.g. `wp-6.8.2`), or `php-fpm` for a plain PHP stack. Generic versions like `wp-latest` are not allowed.
37
35
-h, --help help for create
38
36
--settings string Website settings (JSON)
39
-
--type string Website type (one of: horizons, node-static)
0 commit comments