Browse Source

Add `now login` and document `now logout`

master
Matheus Fernandes 8 years ago
parent
commit
b6dadac9f5
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 2
      bin/now-deploy.js
  2. 2
      bin/now.js

2
bin/now-deploy.js

@ -98,6 +98,8 @@ const help = () => {
upgrade | downgrade [plan] Upgrades or downgrades your plan
teams [team] Manages your teams
switch Switches between teams and your account
login Login into your account or creates a new one
logout Logout from your account
${chalk.dim('Options:')}

2
bin/now.js

@ -103,6 +103,8 @@ if (index > -1) {
// rather show the general help and be useful
if (cmd === 'help') {
cmd = 'deploy'
} else if (cmd === defaultCommand && args[0] === 'login') {
args[0] = '--login'
}
const bin = resolve(__dirname, 'now-' + cmd + '.js')

Loading…
Cancel
Save