mega account

The account command lets you create, import, and manage blockchain accounts.

Usage

mega account <subcommand> [options]

Subcommands

SubcommandDescription
createCreate a new account/wallet with custom name
importImport an existing private key with a custom name
listList all managed accounts

Description

This command manages your local keystore accounts for use with Mega CLI. Accounts created or imported are stored in your local keystore and secured with a password. These accounts can be referenced in other commands using the --account flag.

Examples

Create a new account

mega account create
# > Enter a name for your new wallet: myaccount
# > Create password: ********

Import an existing account

mega account import
# > Enter a name for the wallet: imported
# > Enter your private key: ********
# > Create password: ********

List all accounts

mega account list
  • balance - Check account balances
  • deploy - Deploy contracts using your accounts
  • faucet - Get test tokens for your accounts