UNPKG

@puls-atlas/cli

Version:

The Puls Atlas CLI tool for managing Atlas projects

9 lines 1.11 kB
import handlers from './index.js'; import hooks from '../../hooks/index.js'; const registerInstallCommands = program => { const install = program.command('install').description('Install commands.').alias('i'); install.command('app').description('Install the latest dependencies for the app.').option('--composer', 'Install the latest Composer dependencies.').option('--npm', 'Install the latest NPM dependencies.').option('--force', 'Force install the dependencies.').option('--legacy-peer-deps', 'Install with legacy peer dependencies.').action(handlers.app).hook('preAction', hooks.npmAuth).hook('preAction', hooks.versionCheck); install.command('functions').description('Install the latest dependencies for the functions.').option('--force', 'Force install the dependencies.').option('--legacy-peer-deps', 'Install with legacy peer dependencies.').option('--codebase <path>', 'Define the path to where you want to install the dependencies.').action(handlers.functions).hook('preAction', hooks.npmAuth).hook('preAction', hooks.versionCheck); return install; }; export default registerInstallCommands;