Skip to main content

wp site get

Overview

Retrieve the technical details of a specific site by its ID. Includes the domain, path, registration date, and current status flags.

Syntax

wp site get <id> [--field=<field>] [--format=<format>]

Basic Usage

wp site get 2

Output:

+--------------+-----------------------+
| Field | Value |
+--------------+-----------------------+
| blog_id | 2 |
| domain | example.com |
| path | /blog/ |
| registered | 2026-01-15 09:00:00 |
| last_updated | 2026-03-13 14:00:00 |
| public | 1 |
| archived | 0 |
| mature | 0 |
| spam | 0 |
| deleted | 0 |
| lang_id | 0 |
+--------------+-----------------------+

Get a specific field

wp site get 2 --field=url

Output:

http://example.com/blog/

Quick Reference

wp site get 1                     # Root site info
wp site get 2 --format=json # Export as JSON

Next Steps