diffuse-prime-cli
v0.0.1
Published
CLI tool for Diffuse Prime
Downloads
11
Maintainers
Readme
Prime CLI
A CLI tool for Diffuse Prime built with TypeScript and viem.
Installation
npm install -g prime-cli
# or
npx prime-cliUsage
Main Commands
prime-cli --help # Show help
prime-cli --version # Show versionWallet Commands
Set Private Key
prime-cli wallet set-private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80Show Wallet Information
prime-cli wallet showDisplays wallet address and type.
Remove Wallet
prime-cli wallet removeRemoves the stored private key from local storage.
Security
⚠️ WARNING: This CLI tool stores private keys locally with encryption. While the keys are encrypted, this is NOT suitable for production use with real funds.
For production use:
- Use hardware wallets
- Implement proper key management systems
- Never store private keys on disk
The current implementation uses a default encryption key. For better security, consider:
- User-provided passwords for encryption
- Hardware security modules
- Secure key vaults
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run in development mode
npm run dev
# Test locally
node dist/index.js [command]
# or
npx prime-cli [command]Dependencies
- viem - Ethereum library for TypeScript
- commander - CLI framework
- crypto-js - Encryption utilities
- chalk - Terminal styling
License
MIT
