wp site

Perform site-wide operations.

GitHub Issues

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.

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 option

Manage site options in a multisite install.

wp site spam

Mark one or more sites as spam.

wp site unarchive

Unarchive one or more sites.

wp site unspam

Remove one or more sites from spam.