Account Management
The account command group helps you manage your Aleph.im identity, private keys, and account information.
Key Commands
| Command | Description |
|---|---|
create | Create or import a private key |
address | Display your public address(es) |
balance | Check your ALEPH token balance |
show | Display your current configuration |
config | Configure your private key file and active chain |
export-private-key | Display your private key (use with caution) |
Creating or Importing a Key
Before using most Aleph.im features, you'll need a private key:
bash
# Create a new Ethereum private key
aleph account create
# Import an existing private key
aleph account create --private-key YOUR_PRIVATE_KEY
# Import from a file
aleph account create --private-key-file /path/to/key.txtChecking Your Address and Balance
bash
# Display your public address
aleph account address
# Check your ALEPH token balance
aleph account balanceManaging Multiple Keys
The CLI supports multiple keys for different chains:
bash
# List all available keys
aleph account list
# Configure which key to use
aleph account config
# Show current configuration
aleph account showChain Support
Aleph.im supports multiple blockchains. Specify the chain when needed:
bash
# Create a key for a specific chain
aleph account create --chain ETH
# Check balance on a specific chain
aleph account balance --chain SOLSupported chains include:
- ETH (Ethereum)
- SOL (Solana)
- BSC (Binance Smart Chain)
- AVAX (Avalanche)
- And many others (use
--helpto see all options)
Security Considerations
- NEVER share your private key with anyone
- Use
export-private-keyonly when absolutely necessary - Consider using hardware wallets for additional security
- Back up your keys securely
Troubleshooting
If you encounter issues:
- Check your key path with
aleph account path - Verify your configuration with
aleph account show - Ensure you have the correct permissions for key files
- Try recreating your key if it's corrupted