1 | @heroku-cli/plugin-auth
|
2 | =======================
|
3 |
|
4 | auth core plugin for Heroku CLI
|
5 |
|
6 | [![Version](https://img.shields.io/npm/v/@heroku-cli/plugin-auth.svg)](https://npmjs.org/package/@heroku-cli/plugin-auth)
|
7 | [![CircleCI](https://circleci.com/gh/heroku/heroku-cli-plugin-auth/tree/master.svg?style=shield)](https://circleci.com/gh/heroku/heroku-cli-plugin-auth/tree/master)
|
8 | [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/heroku/heroku-cli-plugin-auth?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/heroku-cli-plugin-auth/branch/master)
|
9 | [![Codecov](https://codecov.io/gh/heroku/heroku-cli-plugin-auth/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/heroku-cli-plugin-auth)
|
10 | [![Downloads/week](https://img.shields.io/npm/dw/@heroku-cli/plugin-auth.svg)](https://npmjs.org/package/@heroku-cli/plugin-auth)
|
11 | [![License](https://img.shields.io/npm/l/@heroku-cli/plugin-auth.svg)](https://github.com/heroku/heroku-cli-plugin-auth/blob/master/package.json)
|
12 |
|
13 |
|
14 | * [Commands](#commands)
|
15 |
|
16 | # Commands
|
17 |
|
18 | * [`heroku auth:2fa`](#heroku-auth2fa)
|
19 | * [`heroku auth:2fa:disable`](#heroku-auth2fadisable)
|
20 | * [`heroku auth:2fa:generate-recovery-codes`](#heroku-auth2fagenerate-recovery-codes)
|
21 | * [`heroku auth:login`](#heroku-authlogin)
|
22 | * [`heroku auth:logout`](#heroku-authlogout)
|
23 | * [`heroku auth:token`](#heroku-authtoken)
|
24 | * [`heroku auth:whoami`](#heroku-authwhoami)
|
25 | * [`heroku labs:disable [FEATURE]`](#heroku-labsdisable-feature)
|
26 |
|
27 | ## `heroku auth:2fa`
|
28 |
|
29 | check 2fa status
|
30 |
|
31 | ```
|
32 | USAGE
|
33 | $ heroku auth:2fa
|
34 |
|
35 | ALIASES
|
36 | $ heroku 2fa
|
37 | $ heroku twofactor
|
38 | ```
|
39 |
|
40 | _See code: [src/commands/auth/2fa/index.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/2fa/index.ts)_
|
41 |
|
42 | ## `heroku auth:2fa:disable`
|
43 |
|
44 | disables 2fa on account
|
45 |
|
46 | ```
|
47 | USAGE
|
48 | $ heroku auth:2fa:disable
|
49 |
|
50 | ALIASES
|
51 | $ heroku twofactor:disable
|
52 | $ heroku 2fa:disable
|
53 |
|
54 | EXAMPLES
|
55 | $ heroku auth:2fa:disable
|
56 | Disabling 2fa on me@example.com... done
|
57 | ```
|
58 |
|
59 | _See code: [src/commands/auth/2fa/disable.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/2fa/disable.ts)_
|
60 |
|
61 | ## `heroku auth:2fa:generate-recovery-codes`
|
62 |
|
63 | generates 2fa recovery codes
|
64 |
|
65 | ```
|
66 | USAGE
|
67 | $ heroku auth:2fa:generate-recovery-codes
|
68 |
|
69 | DESCRIPTION
|
70 | If you lose access to your two-factor device, e.g. you lose your phone or it is wiped, you can still log in to your
|
71 | account. When prompted for the second factor after entering your account password, choose "Enter a Recovery Code.” You
|
72 | can then enter one of your recovery codes instead of a token from your two-factor device. Note that each recovery code
|
73 | can only be used once.
|
74 |
|
75 | Running this command will replace existing codes.
|
76 |
|
77 | ALIASES
|
78 | $ heroku twofactor:generate-recovery-codes
|
79 | $ heroku 2fa:generate-recovery-codes
|
80 | $ heroku auth:2fa:generate
|
81 |
|
82 | EXAMPLES
|
83 | $ heroku auth:2fa:generate
|
84 | Password: ********************
|
85 | Recovery codes:
|
86 | 02799c92ab3ba7c7
|
87 | 09aea052a72b6a22
|
88 | 361e00bb82c7cbd4
|
89 | 588ac05dec23952c
|
90 | 6020ef9ec364066b
|
91 | 6cfd923315875e78
|
92 | 7c576b935eafc452
|
93 | 8c00eeb258ee565e
|
94 | a37c5c6985f56e66
|
95 | f82e7c2a50737494
|
96 | ```
|
97 |
|
98 | _See code: [src/commands/auth/2fa/generate-recovery-codes.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/2fa/generate-recovery-codes.ts)_
|
99 |
|
100 | ## `heroku auth:login`
|
101 |
|
102 | login with your Heroku credentials
|
103 |
|
104 | ```
|
105 | USAGE
|
106 | $ heroku auth:login
|
107 |
|
108 | OPTIONS
|
109 | -e, --expires-in=expires-in duration of token in seconds (default 1 year)
|
110 | -i, --interactive login with username/password
|
111 | --browser=browser browser to open SSO with (example: "firefox", "safari")
|
112 |
|
113 | ALIASES
|
114 | $ heroku login
|
115 | ```
|
116 |
|
117 | _See code: [src/commands/auth/login.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/login.ts)_
|
118 |
|
119 | ## `heroku auth:logout`
|
120 |
|
121 | clears local login credentials and invalidates API session
|
122 |
|
123 | ```
|
124 | USAGE
|
125 | $ heroku auth:logout
|
126 |
|
127 | ALIASES
|
128 | $ heroku logout
|
129 | ```
|
130 |
|
131 | _See code: [src/commands/auth/logout.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/logout.ts)_
|
132 |
|
133 | ## `heroku auth:token`
|
134 |
|
135 | outputs current CLI authentication token.
|
136 |
|
137 | ```
|
138 | USAGE
|
139 | $ heroku auth:token
|
140 |
|
141 | OPTIONS
|
142 | -h, --help show CLI help
|
143 |
|
144 | DESCRIPTION
|
145 | By default, the CLI auth token is only valid for 1 year. To generate a long-lived token, use heroku
|
146 | authorizations:create
|
147 | ```
|
148 |
|
149 | _See code: [src/commands/auth/token.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/token.ts)_
|
150 |
|
151 | ## `heroku auth:whoami`
|
152 |
|
153 | display the current logged in user
|
154 |
|
155 | ```
|
156 | USAGE
|
157 | $ heroku auth:whoami
|
158 |
|
159 | ALIASES
|
160 | $ heroku whoami
|
161 | ```
|
162 |
|
163 | _See code: [src/commands/auth/whoami.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/auth/whoami.ts)_
|
164 |
|
165 | ## `heroku labs:disable [FEATURE]`
|
166 |
|
167 | disables an experimental feature
|
168 |
|
169 | ```
|
170 | USAGE
|
171 | $ heroku labs:disable [FEATURE]
|
172 |
|
173 | OPTIONS
|
174 | -a, --app=app app to run command against
|
175 | -r, --remote=remote git remote of app to use
|
176 | --confirm=confirm
|
177 | ```
|
178 |
|
179 | _See code: [src/commands/labs/disable.ts](https://github.com/heroku/cli/blob/v7.42.7/packages/auth/src/commands/labs/disable.ts)_
|
180 |
|