# Installation (/installation)



Supported platforms:

* macOS arm64
* Linux x64
* Linux arm64

## Install [#install]

```bash
curl -fsSL https://marketlab.sh/install.sh | bash
```

The installer asks where `mlabd` should run:

* **Docker**: the CLI runs on the host; the daemon runs in the official container.
* **Native**: the CLI and daemon run directly on the host.

Choose without an interactive prompt:

```bash
curl -fsSL https://marketlab.sh/install.sh | bash -s -- --daemon docker
curl -fsSL https://marketlab.sh/install.sh | bash -s -- --daemon native
```

Docker installation requires Docker Desktop or Docker Engine to be running.

Install a specific version:

```bash
curl -fsSL https://marketlab.sh/install.sh | bash -s -- v0.1.2 --daemon docker
```

## Verify [#verify]

```bash
mlab --version
mlab daemon backend
mlab daemon status
```

The daemon starts automatically when a live command needs it. See [Daemon](/daemon).

## PATH [#path]

If `mlab` is not found after installation:

```bash
export PATH="$HOME/.local/bin:$PATH"
```

Make it permanent in Bash:

```bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```

For Zsh, use `~/.zshrc` instead.

## Upgrade [#upgrade]

Check for a release:

```bash
mlab upgrade --check
```

Upgrade the CLI and daemon together:

```bash
mlab upgrade
```

Do not keep an older daemon running behind a newer CLI. See [Daemon troubleshooting](/daemon/troubleshooting) if versions do not match.

## Next [#next]

Run the [Quickstart](/getting-started), then configure [Authentication](/authentication) only for the providers you need.
