#!/usr/bin/env node

/**
 * Bangstack CLI entry point
 */

// Check Node version
const nodeVersion = process.versions.node;
const majorVersion = parseInt(nodeVersion.split('.')[0], 10);

if (majorVersion < 16) {
  console.error('Error: Bangstack requires Node.js version 16 or higher.');
  console.error(`You are currently running Node.js ${nodeVersion}`);
  process.exit(1);
}

// Load and run the CLI
require('../dist/cli/index.js');
