# Websites with Claude and the command line

Change, check and publish your website from Claude or the command line, using the same versions as the Websites screen.

You may prefer to work where you already are: in Claude, or with a developer or coding agent such as Claude Code on a computer. Both work on the same versions as the Websites screen and the Module Builder, with the same rule: nothing goes live until someone with the right to publish says so.

[Open Websites now](/tenant/?open=settings/websites)

## Which one to use

| You are… | Use | Good for |
|---|---|---|
| A Workspace Admin in the app | the Module Builder | Changing the website, and a module with it. See [Make or change a website with the Module Builder](article:48d315f8-7364-4385-80d0-3a133e7b6666). |
| In claude.ai or Claude Desktop | the Data Visions connector | Changing pages, checking DNS, adding domains and routes, publishing when you say so. |
| A developer or coding agent with the code on a computer | the command line | Creating a website, the first upload, and any change to the whole code. |

## With Claude

1. Connect Claude to your workspace. See [Marketplace: Connect your AI](article:488b0b95-e1d0-453c-9f15-e0ce2a91d746).
2. When you connect, allow **Change your websites**. A connection made before 2026-10-15 doesn't have it: disconnect and connect again.
3. Ask, for example: *"On our website, change the phone number in the footer to 555-0142 and show me the preview."*

What Claude uses behind the scenes:

| Tool | What it does |
|---|---|
| `sites_list`, `site_detail` | Lists your websites; shows one with its versions and domains. |
| `site_source_files`, `site_source_read` | Reads the website's files. |
| `site_edit` | Saves changes as a new version with its own preview. |
| `site_versions_refresh` | Checks whether a new version has finished building. |
| `site_publish` | Puts a version live, or an earlier one back. Claude does this only when you say so. |
| `site_domain_add`, `site_domain_verify` | Adds a domain; checks its DNS record by record. |
| `site_route_add`, `site_route_remove` | Serves a path with another website, or stops. |

Claude can't create a website or upload its first version; use the Websites screen or the command line for that.

## With the command line

Set up the command line first. See [The command line (CLI)](article:88225cbf-d646-45c7-96ba-b66ab94aa10c). Then:

| Command | What it does |
|---|---|
| `platform sites list` / `platform sites show www` | Your websites; one website's versions and domains. |
| `platform sites create www --name "Company website"` | Creates a website. |
| `platform sites pull www ./site` | Downloads the live version's code into a folder. |
| `platform sites deploy ./site --site www --notes "New services page"` | Uploads a new version, waits for the build and prints its preview address. |
| `platform sites publish www 7` | Puts version 7 live. Publishing an earlier number rolls back. |
| `platform sites domain add www acmeprecision.com` | Adds a domain and prints its records. |
| `platform sites dns www` | Checks every domain's DNS now, record by record. |
| `platform sites route add www acmeprecision.com /updates updates` | Serves */updates* with the *updates* website. `route list` shows its status. |
| `platform sites feeds www --feed CRM.LEADS_SITE` | Sets the feeds the website may use. |

The very first upload goes live by itself; every later one waits for `publish`.

## Good to know

- **Pull before you upload.** If someone changed the website in the builder or in Claude, an upload from an older folder is refused, so their change isn't lost. Run `platform sites pull` again and carry your change over.
- **Mix freely.** The builder can change a website you uploaded from the command line, and the other way round.
- **Read-only for records, but website changes allowed.** *Change your websites* is separate from changing records, so connected AI apps can be read-only for your data and still edit the website. Turning AI connectors **Off** stops both. See [Security: AI connectors](article:cc965b81-cdc0-4970-89ee-6ac862a413f2).
- **Each person acts as themselves.** What Claude or the command line can do depends on that person's *Manage websites* and *Publish websites* permissions.
- **Coding agents** get the website rules (how a site is built, feeds, forms, domains) through the connector, so you don't need to explain them.


Source: https://datavisions.ai/docs/system-settings/workspace/websites-2/websites-with-claude-and-the-command-line
