Skip to main content

Mega CLI

A powerful command-line interface that streamlines local development and interaction with MegaETH testnet and mainnet. Whether you’re a smart contract developer, frontend engineer, full-stack developer, or user, Mega CLI provides one consistent workflow across networks. Mega CLI Banner

What is Mega CLI?

Mega CLI wraps foundational blockchain development tools like viem and Foundry (Anvil, Forge, Cast, and Chisel) with an easy-to-use interface specifically configured for the MegaETH ecosystem.

Key Features

Account Management

Create, import, and manage blockchain accounts with simple commands

Faucet Access

Easily request test tokens from the MegaETH testnet faucet

Project Templates

Spin up pre-configured projects for smart contract, frontend, or full-stack development

Development Environment

Quickly start local blockchain and/or Next.js development servers

Smart Contract Operations

Compile, deploy, and verify contracts locally or on MegaETH testnet/mainnet

Foundry Integration

Use Foundry’s powerful tools with MegaETH-specific configurations

Why Use Mega CLI?

  • Streamlined Interactions: Quickly perform essential tasks like checking balances and requesting testnet tokens with just your keyboard
  • Simplified Workflow: Reduce boilerplate setup and configuration time
  • Developer Experience: Intuitive commands designed for devs
  • Network Aware: Select local, MegaETH testnet, or MegaETH mainnet with a consistent --network option
  • Custom RPCs: Override default endpoints safely with chain ID validation

Easter Egg

Mega CLI includes a hidden command that provides a fun surprise. Happy hunting!
Hint: You take a mortal man and put him in control

Ready to start using Mega CLI? Follow our installation and Setup guide to get set up in minutes.