-
Notifications
You must be signed in to change notification settings - Fork 5
/
bl.js
executable file
·20 lines (17 loc) · 852 Bytes
/
bl.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env node
const commander = require('commander');
const pkg = require('./package');
commander
.version(pkg.version)
.command('version', 'print brainlife CLI version number')
.command('login', 'login to brainlife and generate a temporary access token')
.command('refresh', 'refresh authentication token')
.command('profile', 'query the available list of profiles')
.command('resource', 'query the available list of resources')
.command('datatype', 'query the available list of datatypes')
.command('project', 'create and view brainlife projects')
.command('pub', 'query brainlife publications')
.command('data', 'view and utilize stored data objects').alias('dataset')
.command('bids', 'bids upload / download')
.command('app', 'query and run brainlife apps');
commander.parse(process.argv);