pagebridge list-sites
Lists all Google Search Console properties accessible to the configured service account.
Usage
pagebridge list-sites [options]Options
| Flag | Type | Description |
|---|---|---|
--json | boolean | Output as JSON ({ "sites": [...] }) for scripting and piping |
Output
Returns a list of site URLs (e.g., sc-domain:example.com or https://example.com/). These are the values you pass to --site when running sync.
Examples
# List all accessible sites
pagebridge list-sites
# JSON output for scripting
pagebridge list-sites --jsonNo sites listed?
If no sites appear, the service account does not have access to any GSC properties. To fix this:
- Open Google Search Console
- Navigate to your property settings
- Click Users and permissions
- Add the service account email (e.g.,
pagebridge-sync@my-project.iam.gserviceaccount.com) - Set permission to Full
See Google Service Account setup for full details.