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

# Installation

> Install the compresto command with Homebrew and sign in with your Compresto license.

**1. Install with Homebrew**

```bash theme={null}
brew install dqhieu/tap/compresto
```

Use the full `dqhieu/tap/compresto` name. Homebrew also installs the tools Compresto relies on: FFmpeg, Gifski, Ghostscript, pngquant, WebP and libavif.

Don't have Homebrew? Install it from [brew.sh](https://brew.sh) first.

**2. Check the installation**

```bash theme={null}
compresto doctor
```

You should see a check mark next to every tool, followed by **Everything is in place.**

**3. Sign in**

```bash theme={null}
compresto auth login
```

If the Compresto app is already activated on this Mac, you're signed in straight away and no extra device is used. Otherwise you're asked for your license key, which is in your purchase email.

> [!TIP]
>
> Using both the app and the command-line tool on one Mac? Activate the app first, then run `compresto auth login`. The two then share a single device on your license.

> [!NOTE]
>
> **Don't have a license key?** Purchase one at [compresto.app/pricing](https://compresto.app/pricing)

## Update

```bash theme={null}
brew upgrade compresto
```

## Uninstall

```bash theme={null}
compresto auth logout
brew uninstall compresto
```

Signing out first frees the device on your license if the command-line tool activated it. See [License](https://compresto.app/docs/cli/license.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.