mega setup

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

Usage

mega setup [options]

Options

OptionDescription
--checkOnly check if dependencies are installed without attempting installation

Description

This command verifies if Foundry (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

# Install Foundry dependencies
mega setup

# Only check if Foundry is installed
mega setup --check
  • account - Once Foundry is installed, create accounts
  • dev - Start development environments using Foundry