> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appz.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying Projects from Appz CLI

> Learn how to deploy your Appz Projects from Appz CLI using the `appz` or `appz deploy` commands.

## Deploying from source

The `appz` command is used to deploy Appz Projects and can be used from either the root of the Appz Project directory or by providing a path.

```bash terminal theme={null}
appz
```

> Deploys the current Appz project, when run from the Appz Project root.

You can alternatively use the [`appz deploy` command](/cli/commands/deploy) for the same effect, if you want to be more explicit.

```bash terminal theme={null}
appz [path-to-project]
```

> Deploys the Appz project found at the provided path, when it's a Appz Project root.

When deploying, stdout is always the Deployment URL.

```bash terminal theme={null}
appz > deployment-url.txt
```

> Writes the Deployment URL output from the deploy command to a text file.

## Relevant commands

* [deploy](/cli/commands/deploy)

## Deploying a staged production build

By default, when you promote a deployment to production, your domain will point to that deployment. If you want to create a production deployment without assigning it to your domain, for example to avoid sending all of your traffic to it, you can:

1. Turn off the auto-assignment of domains for the current production deployment:

```bash terminal theme={null}
appz --prod --skip-domain
```

2. When you are ready, manually promote the staged deployment to production:

```bash terminal theme={null}
appz promote [deployment-id or url]
```

## Relevant commands

* [promote](/cli/commands/promote)
* [deploy](/cli/commands/deploy)

## Deploying from local build (prebuilt)

You can build Appz projects locally to inspect the build outputs before they are deployed.

It's also useful for debugging build outputs.

```bash terminal theme={null}
appz build
```

> Using the `appz command` to deploy and write stdout to a text file.

This produces .appz/output in the Build Output API format. You can review the output, then deploy with:

```bash terminal theme={null}
appz deploy --prebuilt
```

> Deploy the build outputs in .appz/output produced by appz build.

## Relevant commands

* [build](/cli/commands/build)
* [deploy](/cli/commands/deploy)
