UNPKG

cdp-wallet-onramp-kit

Version:

Complete toolkit for Coinbase Developer Platform (CDP) Embedded Wallets and Onramp integration with reusable components, utilities, and documentation

25 lines (21 loc) 792 B
#!/usr/bin/env node const { Command } = require('commander'); const { installAll } = require('../dist/commands/install-all'); const chalk = require('chalk'); const program = new Command(); program .name('cdp-install') .description('Install complete CDP Wallet & Onramp integration') .option('-d, --dir <directory>', 'Target directory', '.') .option('-f, --force', 'Overwrite existing files') .action(async (options) => { try { await installAll(options); console.log(chalk.green('🎉 Complete CDP integration installed successfully!')); console.log(chalk.blue('📖 Check CDP_SETUP.md for next steps')); } catch (error) { console.error(chalk.red('❌ Installation failed:'), error); process.exit(1); } }); program.parse(process.argv);