add(new GenerateConfigsCommand(getcwd())); $application->add(new ListSecretsCommand(getcwd())); $application->add(new SetSecretsCommand(getcwd())); $application->add(new GenerateKeysCommand(getcwd())); $application->add(new DumpPrivateKeyCommand(getcwd())); $application->add(new SavePrivateKeyCommand(getcwd())); $input = new ArgvInput(); if (null !== $env = $input->getParameterOption(['--env', '-e'], 'dev', true)) { putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env); } $output = new ConsoleOutput(); $application->run($input, $output);