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
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5063,13 +5063,20 @@ wp site archive [<id>...] [--slug=<slug>]
5063
5063
Creates a site in a multisite installation.
5064
5064
5065
5065
~~~
5066
-
wp site create --slug=<slug> [--title=<title>] [--email=<email>] [--network_id=<network-id>] [--private] [--porcelain]
5066
+
wp site create [--slug=<slug>] [--site-url=<url>] [--title=<title>] [--email=<email>] [--network_id=<network-id>] [--private] [--porcelain]
5067
5067
~~~
5068
5068
5069
5069
**OPTIONS**
5070
5070
5071
-
--slug=<slug>
5071
+
[--slug=<slug>]
5072
5072
Path for the new site. Subdomain on subdomain installs, directory on subdirectory installs.
5073
+
Required if --site-url is not provided.
5074
+
5075
+
[--site-url=<url>]
5076
+
Full URL for the new site. Use this to specify a custom domain instead of the auto-generated one.
5077
+
For subdomain installs, this allows you to use a different base domain (e.g., 'http://site.example.com' instead of 'http://site.main.example.com').
5078
+
For subdirectory installs, this allows you to use a different path.
5079
+
If provided, --slug is optional and will be derived from the URL. If both --slug and --site-url are provided, --slug will be used as the base for internal operations (like user creation), while the domain/path from --site-url will be used for the actual site URL.
0 commit comments