# Light Cloud + Claude Code: Deploy Your App with AI

To deploy from Claude Code to Light Cloud, run `claude mcp add light-cloud -- npx @light-cloud/mcp-server` once, open Claude Code in your project, and ask: "Deploy this folder to Light Cloud." Claude finds the framework, uploads the folder and answers with a live URL. My one-page site was deployed 4 seconds after Claude started it, and every change after that took one more sentence.

This is a real session from 26 September 2026, with MCP server 1.5.2: the screenshots are my Claude Code window, with IDs hidden. The result is live: [main-hello-claude-examples.light-cloud.io](https://main-hello-claude-examples.light-cloud.io).

## What I used

- [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview).
- [Node.js](https://nodejs.org/) 20 or later, for `npx`.
- A folder called `hello-claude` with one `index.html` in it.

A Light Cloud account is optional: Claude sets one up if you have none.

## Step 1: Install the server

In the project folder:

```shell os="macOS,Linux"
$ claude mcp add light-cloud -- npx @light-cloud/mcp-server
Added stdio MCP server light-cloud with command: npx @light-cloud/mcp-server to local config
File modified: /Users/you/.claude.json [project: /Users/you/hello-claude]
```

```shell os="Windows"
PS> claude mcp add light-cloud -- npx @light-cloud/mcp-server
Added stdio MCP server light-cloud with command: npx @light-cloud/mcp-server to local config
File modified: C:\Users\you\.claude.json [project: C:\Users\you\hello-claude]
```

"Local config" means this project only. Check that Claude Code can reach it:

```shell os="macOS,Linux"
$ claude mcp list
Checking MCP server health…
light-cloud: npx @light-cloud/mcp-server - ✔ Connected
```

```shell os="Windows"
PS> claude mcp list
Checking MCP server health…
light-cloud: npx @light-cloud/mcp-server - ✔ Connected
```

The Windows output is the same apart from your own paths. Claude Code asks before each tool call; to stop being asked for the Light Cloud tools, add `mcp__light-cloud` to the allow list under `/permissions`.

## Step 2: Sign in

Open Claude Code in the folder. The first time Claude needs your account, it opens a Light Cloud page in your browser. Sign in, or create an account there, and click **Connect**. That is all: no password in the chat, no code to copy.

## Step 3: Ask it to deploy

I typed one sentence. This is my Claude Code window after the answer:

![Claude Code: the prompt Deploy this folder to Light Cloud, in the examples workspace, behind the password by-asking, then Read 1 file, listed 1 directory, called light-cloud 3 times, ran 1 shell command, and the answer Site deployed to the examples workspace, behind a visitor password, with the URL and the password](/assets/blog/one-command-claude-code-light-cloud/cc-deploy.webp)

Claude worked for 23 seconds, most of it reading the folder and checking. The deploy itself took 4 seconds. The grey line sums up what it did: it read the folder, called the Light Cloud tools three times, and checked the live site with one command. Claude Code can show each of those calls in full if you want to see them.

The address has the shape `<environment>-<app>-<workspace>.light-cloud.io`, and it asked every visitor for the password.

## Step 4: Change something and redeploy

I added a second line to the page and typed "I changed the page. Redeploy.":

![Claude Code: the prompt I changed the page. Redeploy., then Called light-cloud 2 times, and the answer I redeployed the updated page with the new second line, it is live at the same URL, and the password is still by-asking](/assets/blog/one-command-claude-code-light-cloud/cc-redeploy.webp)

No names or IDs needed: the first deploy linked the folder to the app (see below). A redeploy keeps the password, and visitors see the new version within a minute.

## Step 5: Ask what happened

![Claude Code: the prompt Show me the deployments of hello-claude., and the answer hello-claude has 2 deployments, both successful, with their times, 4 seconds each, and sizes; the deployment IDs are hidden](/assets/blog/one-command-claude-code-light-cloud/cc-history.webp)

Two deployments, 4 seconds each; I hid the deployment IDs. Behind the scenes, the server marks everything that comes from logs, commit messages or names as data, so text hidden in a log line cannot pass itself off as an instruction to Claude.

## Step 6: Make it public

![Claude Code: the prompt Make the site public., and the answer I turned the password off, within a minute the site will be public and anyone with the link can open it](/assets/blog/one-command-claude-code-light-cloud/cc-public.webp)

A minute later the page opened for everyone:

![The deployed page: Hello from Claude Code, Deployed to Light Cloud by asking. Now with a second line.](/assets/blog/one-command-claude-code-light-cloud/c-02-live-site.webp)

## The file it leaves behind

The first deploy writes `.lightcloud` into the folder:

```json title=".lightcloud"
{
  "organisationId": "***********",
  "applicationId": "***********",
  "applicationName": "hello-claude",
  "framework": "html",
  "deploymentType": "static"
}
```

It links the folder to the app, which is why "Redeploy" needs no names or IDs. It stays on your machine: it is never uploaded with the site.

## What else you can ask

The server has a tool for most things you would otherwise click in the console. Some sentences and the tools behind them:

- "Show me the last 100 log lines." (`get-environment-logs`)
- "Set STRIPE_KEY on production and redeploy." (`set-environment-variables`, `deploy-environment`)
- "Add a Postgres database and set DATABASE_URL." (`create-database`, `get-database-connection-string`, `set-environment-variables`)
- "Point shop.example.com at this app." (`add-custom-domain`)
- "Roll back to the previous deployment." (`rollback-deployment`)
- "Keep this app always on." (`set-scaling`)
- "Deploy the main branch of my GitHub repository." (`create-application`)
- "What is using my included usage this month?" (`get-usage`)

When something needs a paid plan, the platform refuses with the name of the plan that includes it, and Claude asks you before changing anything. A card is only ever added on a Stripe page it gives you a link to.

## The same from a terminal

If you would rather type commands, the Light Cloud CLI does the same. Install it and sign in:

```shell os="macOS,Linux"
$ npm install -g @light-cloud/cli
$ lc login
```

```shell os="Windows"
PS> npm install -g @light-cloud/cli
PS> lc login
```

`lc login` opens the same kind of page in your browser. Sign in or create an account, and click **Connect**:

![The Light Cloud page asking Connect Light Cloud to your CLI, with the Connect button highlighted](/assets/blog/one-command-claude-code-light-cloud/c-01-connect.webp)

For a folder that is not on Light Cloud yet, run `lc init` in it. My test folder, `hello-terminal`, holds one `index.html`:

```shell os="macOS,Linux"
$ lc init
```

```shell os="Windows"
PS> lc init
```

It asks a few questions. Pick an answer with the arrow keys and press Enter. The first is the workspace, asked only when you have more than one:

![The lc init prompt Which workspace?, listing julias, prod-team and examples, with examples selected](/assets/blog/one-command-claude-code-light-cloud/cli-workspace.webp)

Then it asks whether to keep that workspace as the default, what to do with the folder, what kind of site it is, and the app name, which comes from the folder. After the last answer it uploads the folder and deploys it. This is my finished run; I hid the app ID:

![lc init after the answers: examples, No, Create a new app, Static HTML, hello-terminal, then the deploy steps, Deployed in 3.7s, and Live at https://main-hello-terminal-examples.light-cloud.io](/assets/blog/one-command-claude-code-light-cloud/cli-init.webp)

`lc init` writes the same `.lightcloud` file as Claude, so from then on `lc deploy` in that folder sends it again without any questions:

```shell os="macOS,Linux"
$ lc deploy
```

```shell os="Windows"
PS> lc deploy
```

![lc deploy: hello-terminal to Production, uploaded 1 file, deployment queued, the deploy steps, Deployed in 3.3s, and Live at the same address](/assets/blog/one-command-claude-code-light-cloud/cli-deploy.webp)

The same goes for a folder Claude deployed: `lc deploy` in `hello-claude` redeploys `hello-claude`. Run `lc deploy` in a folder with no `.lightcloud`, and it asks which workspace and which existing app to deploy instead. The full command list is in the [CLI docs](https://docs.light-cloud.com/deploy-with-ai/cli).

## Taking access back

Handing an assistant your account should come with a way to take it back. In the console, **Settings**, **Security**, **Agents & CLI** turns off everything Claude, other MCP clients and the CLI may do, or only some groups, such as deleting or payments. **Sign out all agents** ends every one of their sessions at once.

## FAQ

### How do I add Light Cloud to Claude Code?

Run `claude mcp add light-cloud -- npx @light-cloud/mcp-server` in your project folder, then start Claude Code there. Claude now has tools to deploy, redeploy, read logs, set variables, add databases and more.

### Do I need a Light Cloud account first?

No. The first time Claude needs one, it opens a Light Cloud page in your browser where you sign in or create an account, and you click **Connect**. No password is typed into the chat.

### How long does a deploy take?

For my one-page site, 4 seconds for each deploy; Claude took about 20 seconds in total, including reading the folder. Visitors see a new version within a minute, once the edge refreshes.

### Can Claude put a password on the site?

Yes. Ask for a password when you deploy, or later. The site then asks every visitor for it, and asking again without a password makes it public.

### Is there a terminal version?

Yes, the Light Cloud CLI: `npm install -g @light-cloud/cli`, then `lc login`, and `lc init` in a new folder or `lc deploy` in a linked one. It uses the same sign-in page and deploys the same way.
