stratumn-cli
Version:
CLI tools for Stratumn
13 lines (7 loc) • 2.23 kB
JavaScript
;
var _commander = require('commander');
var _commander2 = _interopRequireDefault(_commander);
var _readPackageSync = require('../utils/readPackageSync');
var _readPackageSync2 = _interopRequireDefault(_readPackageSync);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
_commander2.default.version((0, _readPackageSync2.default)('version')).command('signup', 'create an account').command('login', 'login to your account').command('logout', 'delete authentication data').command('whoami', 'display logged in user').command('passwd', 'change your password').command('list', 'list applications').command('tokengenerate', 'generate invite token').command('tokenlist', 'list all available invite tokens').command('tokensent', 'update invite token as used with the email it was sent to').command('ls', 'list applications').command('show <app-name>', 'show application details').command('view <app-name>', 'show application details').command('info <app-name>', 'show application details').command('metrics <app-name>', 'show application metrics').command('stats <app-name>', 'show application metrics').command('operations [app-name]', 'show application operations').command('ops [app-name]', 'show application operations').command('logs [app-name]', 'show application operations').command('set-config [app-name]', 'set application configuration variables').command('get-config [app-name]', 'get application configuration variables').command('unset-config [app-name]', 'unset application configuration variables').command('create <app-name>', 'create an application').command('new <app-name>', 'create an application').command('deploy <app-name> <script-path>', 'deploy an application').command('destroy <app-name>', 'destroy an application').command('rm <app-name>', 'destroy an application').command('rename <app-name> <new-name>', 'rename an application').command('mv <app-name> <new-name>', 'rename an application').command('users <app-name>', 'show application users').command('invite <app-name> <role> <email>', 'invite another user to an application').command('accept <token>', 'accept an invitation').command('routes <app-name>', 'output routes').parse(process.argv);