> ## 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.

# appz rollback

> Learn how to roll back your production deployments to previous deployments using the `appz rollback` CLI command.

export const GlobalOptionsComponent = ({command}) => <div>
    <h2><a href="#global-options">Global Options</a></h2>
    <p>These general options can be applied when using the <code>{command}</code> command:</p>
    <ul>
    <li><code>--cwd</code></li>
    <li><code>--debug</code></li>
    <li><code>--global-config</code></li>
    <li><code>--help</code></li>
    <li><code>--local-config</code></li>
    <li><code>--no-color</code></li>
    <li><code>--scope</code></li>
    <li><code>--token</code></li>
    </ul>

    <p>For detailed information on these global options and their applications, refer to the <a href="/cli/global-options">options section</a>.</p>
    </div>;

The `appz rollback` command is utilized to revert production deployments to earlier ones.

## Usage

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

> Executing appz rollback retrieves the status of any ongoing rollbacks.

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

> Using appz rollback to revert to a previous deployment.

## Unique Options

These options are exclusive to the appz rollback command.

### Timeout

The `--timeout` option dictates how long the appz rollback command will wait for the rollback to finalize. It does not influence the actual rollback process, which will continue regardless.

A timeout setting of 0 means that the command will exit immediately after initiating the rollback.

```bash terminal theme={null}
appz rollback https://example-app-6vd6bhoqt.appz.dev
```

> Using the appz rollback command on the deployment at [https://example-app-6vd6bhoqt.appz.dev](https://example-app-6vd6bhoqt.appz.dev).

<GlobalOptionsComponent command={'appz rollback'} />
