wp site <command>

Performs site-wide operations on a multisite install.

EXAMPLES EXAMPLES

# Create site
$ wp site create --slug=example
Success: Site 3 created: www.example.com/example/

# Output a simple list of site URLs
$ wp site list --field=url
http://www.example.com/
http://www.example.com/subdir/

# Delete site
$ wp site delete 123
Are you sure you want to delete the 'http://www.example.com/example' site? [y/n] y
Success: The site at 'http://www.example.com/example' was deleted.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp site activate

Activate one or more sites.

wp site archive

Archive one or more sites.

wp site create

Create a site in a multisite install.

wp site deactivate

Deactivate one or more sites.

wp site delete

Delete a site in a multisite install.

wp site empty

Empty a site of its content (posts, comments, terms, and meta).

wp site list

List all sites in a multisite install.

wp site mature

Set one or more sites as mature.

wp site option

Manage site options in a multisite install.

wp site private

Set one or more sites as private.

wp site public

Set one or more sites as public.

wp site spam

Mark one or more sites as spam.

wp site unarchive

Unarchive one or more sites.

wp site unmature

Set one or more sites as unmature.

wp site unspam

Remove one or more sites from spam.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.