UNPKG

@fusionauth/cli

Version:
16 lines (15 loc) 667 B
#! /usr/bin/env -S node --no-warnings=ExperimentalWarning import * as fs from 'node:fs'; import { Command } from '@commander-js/extra-typings'; import chalk from 'chalk'; import figlet from 'figlet'; import * as commands from './commands/index.js'; const fusionString = figlet.textSync('Fusion').split('\n'); const authString = figlet.textSync('Auth').split('\n'); fusionString.forEach((line, i) => { console.log(chalk.white(line) + chalk.hex('#F58320')(authString[i])); }); const program = new Command(); program.name('@fusionauth/cli').description('CLI for FusionAuth'); Object.values(commands).forEach((command) => program.addCommand(command)); program.parse();