@veil-protocol/cli
v0.2.1
Published
CLI for scaffolding Veil Protocol privacy-first Solana projects
Maintainers
Readme
@veil-protocol/cli
CLI for scaffolding Veil Protocol privacy-first Solana projects.
Installation
npm install -g @veil-protocol/cliUsage
Initialize a new project
veil init my-appInteractive prompts will guide you through:
- Network selection (devnet for testing, mainnet for production)
- Helius RPC integration (recommended for privacy)
- ShadowPay integration (private transfers)
- Template selection (Basic, Governance, Treasury, Full)
With flags
# Devnet (default - recommended for development)
veil init my-app --network=devnet --helius --shadow-pay
# Mainnet (production)
veil init my-app --network=mainnet-beta --helius --shadow-payShow network configuration help
veil networkShow info
veil infoNetwork Configuration
Devnet (Development)
- Free SOL from faucet.solana.com
- Perfect for development and testing
- No real money involved
- Wallet: Enable "Testnet Mode" in Phantom/Solflare
Mainnet (Production)
- Real SOL required
- Permanent transactions
- Full privacy features
- Wallet: Disable "Testnet Mode"
Switching Networks
Update your .env file:
# Devnet (development)
VITE_SOLANA_NETWORK=devnet
VITE_HELIUS_RPC_URL=https://devnet.helius-rpc.com/?api-key=YOUR_KEY
# Mainnet (production)
VITE_SOLANA_NETWORK=mainnet-beta
VITE_HELIUS_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEYThen restart your application and switch your wallet to match.
Templates
| Template | Features | |----------|----------| | Basic | Identity + Recovery | | Governance | + Private Voting | | Treasury | + Stealth Multisig | | Full | All features including Private Staking |
Generated Structure
my-app/
├── veil.config.ts # Veil Protocol configuration
├── package.json
└── src/
└── lib/
└── rpc.ts # Privacy-focused RPC abstractionWhy Helius?
Using Helius RPC reduces metadata leakage:
- Public RPC endpoints log IP + wallet associations
- Request patterns can reveal user behavior
- Helius provides dedicated endpoints with better privacy practices
Relationship to Aegis Shield
This CLI scaffolds projects that use the Aegis Shield core (aegis-shield repo).
Veil is the developer-friendly interface; Aegis Shield is the security core.
