import { Command } from "commander" ; import crypto from "crypto" ; function randomSecret ( ) { return crypto . randomBytes ( 32 ) . toString ( "hex" ) ; } export default function createRandomSecret ( program ) { program . command ( "random-secret" ) . description ( `Generate a random secret` ) . action ( ( ) => { console . log ( randomSecret ( ) ) ; } ) ; }