Files
Wyatt Johnson d6828c5ef4 cli fixes
2018-05-01 16:27:47 -06:00

25 lines
784 B
JavaScript
Executable File

#!/usr/bin/env node
const program = require('commander');
// We're requiring this here so it'll setup some promise rejection hooks to log
// out.
require('./util');
// Setup the program.
program
.command('serve', 'serve the application')
.command('db', 'run database commands')
.command('settings', 'interact with the application settings')
.command('assets', 'interact with assets')
.command('setup', 'setup the application')
.command('jobs', 'work with the job queues')
.command('token', 'work with the access tokens')
.command('users', 'work with the application auth')
.command('migration', 'provides utilities for migrating the database')
.command(
'plugins',
'provides utilities for interacting with the plugin system'
)
.parse(process.argv);