# deploy (/cli/deploy)



```bash
mcp-use deploy
```

Deploys the current project to Manufact Cloud. By default the CLI deploys **from GitHub**: it can guide you through connecting the GitHub App and creating a repository if needed, then streams the build logs live. The project is linked to its cloud server through `.mcp-use/project.json`, so subsequent `mcp-use deploy` runs redeploy the same server.

## Flags [#flags]

| Flag                      | Description                                                                                                    |
| ------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `--name <name>`           | Name for the server.                                                                                           |
| `--org <slug-or-id>`      | Target organization.                                                                                           |
| `--branch <name>`         | Branch to deploy (non-production branches create [preview environments](/dashboard/deployments)).              |
| `--root-dir <path>`       | Subdirectory containing the server, for monorepos.                                                             |
| `--port <port>`           | Port your server listens on (default `3000`).                                                                  |
| `--runtime <runtime>`     | `node` or `python`, auto-detected by default.                                                                  |
| `--region <region>`       | `US`, `EU`, or `APAC`.                                                                                         |
| `--env KEY=VALUE`         | Set environment variable values (repeatable).                                                                  |
| `--env-file <path>`       | Load environment variables from a file.                                                                        |
| `--build-command <cmd>`   | Override the build command.                                                                                    |
| `--start-command <cmd>`   | Override the start command.                                                                                    |
| `--dockerfile <path>`     | Path to a non-default Dockerfile (relative to `--root-dir` / repo root).                                       |
| `--watch-paths <glob...>` | Only auto-deploy when matching files change ([monorepos](/dashboard/deployments)). Set on new-server creation. |
| `--wait-for-ci`           | Hold GitHub auto-deploys until other check runs pass. Set on new-server creation.                              |
| `--new`                   | Force creating a new server instead of redeploying the linked one.                                             |
| `--no-github`             | Upload local source as a tarball instead of deploying from GitHub.                                             |
| `--open`                  | Open the deployment in the browser when it succeeds.                                                           |
| `-y, --yes`               | Skip confirmation prompts.                                                                                     |

## Examples [#examples]

Deploy the current repository, setting a couple of secrets:

```bash
mcp-use deploy --env OPENAI_API_KEY=sk-... --env DB_URL=postgres://...
```

Deploy a monorepo package to the EU region:

```bash
mcp-use deploy --root-dir packages/my-server --region EU
```

Deploy a monorepo package that only redeploys when its own files or shared code change:

```bash
mcp-use deploy --root-dir packages/my-server \
  --watch-paths "packages/my-server/**" "packages/shared/**"
```

Deploy without GitHub (local source upload):

```bash
mcp-use deploy --no-github --name my-server
```

Deploy a feature branch as a preview:

```bash
mcp-use deploy --branch feat/new-tools
```

After a successful deploy the CLI prints your server's MCP URL, see [Connecting clients](/dashboard/connect-clients) for what to do with it.
