Skip to content

ethereum-optimism/super-cli

Repository files navigation

super-cli

WIP This is a work in progress it is not ready to be consumed!

Local Development Setup

Install Node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install

Instal pnpm

corepack enable pnpm
corepack use [email protected]

Install Dependencies & Build

pnpm i
pnpm nx run-many -t build

Package Tasks

Each package contains the following tasks:

  • build
  • lint
  • lint:fix
  • typecheck
  • test

You can run these tasks individually in a single package or across all packages.

Linting

# Lint all packages
pnpm nx run-many -t lint

# Lint a single package
pnpm nx run <package>:lint

Typechecking

# Typecheck all packages
pnpm nx run-many -t typecheck

# Typecheck a single package
pnpm nx run <package>:typecheck

Unit Testing

# Run unit tests for all packages
pnpm nx run-many -t test

# Run unit tests for a single package
pnpm nx run <package>:test

Getting Started

Run the CLI

pnpm nx run cli:dev <command>

RPC URL Override

You can override the RPC URL by setting the {name}_RPC_URL environment variable.

For example, lets say we wanted to override OP & Base Mainnet we could do.

OP_RPC_URL=...
BASE_RPC_URL=...

It uses the keys that exist in the superchain registry.

Releases

No releases published

Packages

No packages published