UNPKG

5.12 kBMarkdownView Raw
1@heroku-cli/plugin-auth
2=======================
3
4auth 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<!-- toc -->
14* [Commands](#commands)
15<!-- tocstop -->
16# Commands
17<!-- commands -->
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
29check 2fa status
30
31```
32USAGE
33 $ heroku auth:2fa
34
35ALIASES
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
44disables 2fa on account
45
46```
47USAGE
48 $ heroku auth:2fa:disable
49
50ALIASES
51 $ heroku twofactor:disable
52 $ heroku 2fa:disable
53
54EXAMPLES
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
63generates 2fa recovery codes
64
65```
66USAGE
67 $ heroku auth:2fa:generate-recovery-codes
68
69DESCRIPTION
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
77ALIASES
78 $ heroku twofactor:generate-recovery-codes
79 $ heroku 2fa:generate-recovery-codes
80 $ heroku auth:2fa:generate
81
82EXAMPLES
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
102login with your Heroku credentials
103
104```
105USAGE
106 $ heroku auth:login
107
108OPTIONS
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
113ALIASES
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
121clears local login credentials and invalidates API session
122
123```
124USAGE
125 $ heroku auth:logout
126
127ALIASES
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
135outputs current CLI authentication token.
136
137```
138USAGE
139 $ heroku auth:token
140
141OPTIONS
142 -h, --help show CLI help
143
144DESCRIPTION
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
153display the current logged in user
154
155```
156USAGE
157 $ heroku auth:whoami
158
159ALIASES
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
167disables an experimental feature
168
169```
170USAGE
171 $ heroku labs:disable [FEATURE]
172
173OPTIONS
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<!-- commandsstop -->