> ## Documentation Index
> Fetch the complete documentation index at: https://mega-cli.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# setup

> Check and install Foundry dependencies

# mega setup

The `setup` command checks for and installs Foundry dependencies required by Mega CLI.

## Usage

```bash theme={null}
mega setup [options]
```

## Options

| Option    | Description                                                              |
| --------- | ------------------------------------------------------------------------ |
| `--check` | Only check if dependencies are installed without attempting installation |

## Description

This command verifies if [Foundry](https://book.getfoundry.sh/) (Anvil, Cast, Chisel, and Forge) is installed on your system. If not found:

* On Linux/macOS: Automatically installs Foundry
* On Windows: Provides guidance for manual installation

## Examples

```bash theme={null}
# Install Foundry dependencies
mega setup

# Only check if Foundry is installed
mega setup --check
```

## Related

* [account](/commands/account) - Once Foundry is installed, create accounts
* [dev](/commands/dev) - Start development environments using Foundry
