UNPKG

cdp-wallet-onramp-kit

Version:

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

24 lines (20 loc) 687 B
#!/usr/bin/env node const { Command } = require('commander'); const { setupDocs } = require('../dist/commands/setup-docs'); const chalk = require('chalk'); const program = new Command(); program .name('cdp-setup') .description('Set up CDP Wallet & Onramp documentation') .option('-d, --dir <directory>', 'Target directory', './doc') .option('-f, --force', 'Overwrite existing files') .action(async (options) => { try { await setupDocs(options); console.log(chalk.green('✅ CDP documentation setup complete!')); } catch (error) { console.error(chalk.red('❌ Setup failed:'), error); process.exit(1); } }); program.parse(process.argv);