Skip to content

Commit 18758f6

Browse files
Regenerate README file (#590)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 04a5d00 commit 18758f6

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,13 +5063,20 @@ wp site archive [<id>...] [--slug=<slug>]
50635063
Creates a site in a multisite installation.
50645064

50655065
~~~
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]
50675067
~~~
50685068

50695069
**OPTIONS**
50705070

5071-
--slug=<slug>
5071+
[--slug=<slug>]
50725072
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.
50735080

50745081
[--title=<title>]
50755082
Title of the new site. Default: prettified slug.
@@ -5088,9 +5095,18 @@ wp site create --slug=<slug> [--title=<title>] [--email=<email>] [--network_id=<
50885095

50895096
**EXAMPLES**
50905097

5098+
# Create a site with auto-generated domain
50915099
$ wp site create --slug=example
50925100
Success: Site 3 created: http://www.example.com/example/
50935101

5102+
# Create a site with a custom domain (subdomain multisite)
5103+
$ wp site create --site-url=http://site.example.com
5104+
Success: Site 4 created: http://site.example.com/
5105+
5106+
# Create a site with a custom subdirectory (subdirectory multisite)
5107+
$ wp site create --site-url=http://example.com/custom/path/
5108+
Success: Site 5 created: http://example.com/custom/path/
5109+
50945110

50955111

50965112
### wp site generate

0 commit comments

Comments
 (0)