Thanks to visit codestin.com
Credit goes to github.com

Skip to content

briangershon/evm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVM CLI

A command-line tool for Ethereum (EVM) wallet operations.

Setup

  1. Clone or download this project
  2. Install dependencies:
    npm install

Development

TypeScript Development

The project is written in TypeScript. Source files are in the src/ directory.

# Run directly with tsx (for development)
npm run evm-cli generate-wallet

# Build TypeScript to JavaScript
npm run build

Usage

Local Development

Test the CLI locally:

npm run evm-cli generate-wallet

Install Globally

Build and install the CLI globally to use from anywhere:

npm run build
npm install -g .

Then use:

evm-cli generate-wallet

Commands

generate-wallet

Generates a new Ethereum wallet with a private key and address.

evm-cli generate-wallet

Output:

Generated new wallet:
Mnemonic: swallow want morning impact drift problem version focus chimney again worth address
Address: 0x5AB78171430243aC8393361020C9065499ccB7D7
Private Key: 0x4023b5b383483283b81a93b2bffc59c4c264b4faddb406812e03fb6e9f5959c4

help

Shows available commands and usage information.

evm-cli help

Importing Private Key into Wallets

MetaMask

Option 1: Import via Private Key

  1. Open MetaMask and click the account circle in the top right
  2. Select "Import Account" from the dropdown menu
  3. Choose "Private Key" as the import type
  4. Paste your private key (the 0x... string from the CLI output)
  5. Click "Import" - your wallet will be added to MetaMask

Option 2: Import via Seed Phrase

  1. Open MetaMask and click the account circle in the top right
  2. Select "Import using Secret Recovery Phrase"
  3. Enter your 12-word mnemonic (the word phrase from the CLI output)
  4. Set a password and click "Import"

Brave Wallet

Import via Seed Phrase (Recommended)

  1. Open Brave Wallet (Menu → More Tools → Crypto Wallets)
  2. Click "Already have a wallet?"
  3. Select "Import wallet"
  4. Enter your 12-word mnemonic (the word phrase from the CLI output)
  5. Set a password and click "Continue"

Note: Brave Wallet does not support direct private key import. Use the mnemonic seed phrase instead.

Security Warning

⚠️ Important: The generated mnemonic and private keys are displayed in plain text. In a production environment, consider:

  • Storing seed phrases and private keys securely
  • Using environment variables or secure storage
  • Never sharing or committing mnemonics/private keys to version control
  • Only import seed phrases you generated yourself
  • Never share your mnemonic or private key with anyone
  • Consider these test wallets only - don't store significant funds
  • Use hardware wallets for production/mainnet funds
  • Both the mnemonic and private key give complete control over the wallet

Dependencies

  • Viem - TypeScript interface for Ethereum
  • TypeScript - Type-safe JavaScript
  • tsx - TypeScript execution engine
  • Node.js (ES modules support required)

About

A command-line tool for Ethereum (EVM) wallet operations.

Topics

Resources

License

Stars

Watchers

Forks