---
title: get_site
description: 'The selected website: its friendly id, name, public address, every live
  page with its path and file, the branches ahead of main (`pending_branches`), your
  own draft (`draft`: `drafts/<your account''s id>`, made from main by the first write
  that names no branch, or the site''s old shared `draft` while it is still yours),
  and a preview URL for the live site.'
sidebar:
  order: 28
---

The selected website: its friendly id, name, public address, every live page with its path and file, the branches ahead of main (`pending_branches`), your own draft (`draft`: `drafts/<your account's id>`, made from main by the first write that names no branch, or the site's old shared `draft` while it is still yours), and a preview URL for the live site. Typed inside `bash`, where `help get_site` prints the same.

```text
Usage: get_site

The selected website: its friendly id, name, public address, every
live page with its path and file, the branches ahead of main
(`pending_branches`), your own draft (`draft`: `drafts/<your account's id>`,
made from main by the first write that names no branch, or the site's old
shared `draft` while it is still yours), and a preview
URL for the live site. Also its languages, its tables (with
how many `posts` are `published` beside their `records`), its
JavaScript files, and its plan: limits, usage, and whether the site
is frozen.

Options:
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
