Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/kh_auth_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Log in to KeeperHub

### Synopsis

Authenticate with KeeperHub. By default opens a browser for OAuth.
Use --no-browser for device code flow on headless or SSH environments.
Authenticate with KeeperHub using the device code flow.
Opens a browser to confirm a one-time code.
Use --with-token to read an API key from stdin for non-interactive automation.

See also: kh auth status, kh auth logout
Expand All @@ -17,18 +17,18 @@ kh auth login [flags]
### Examples

```
# Log in via browser
# Log in (device code flow)
kh auth login

# Log in on a headless machine
kh auth login --no-browser
# Log in with an API key (non-interactive)
echo "kh_xxx" | kh auth login --with-token
```

### Options

```
--force Log in again even if a valid credential is stored, creating a new API key
-h, --help help for login
--no-browser Do not open a browser window
--with-token Read token from stdin
```

Expand All @@ -39,6 +39,7 @@ kh auth login [flags]
--jq string Filter JSON output with a jq expression
--json Output as JSON
--no-color Disable color output
--org string Organization ID to use (overrides default from auth)
-y, --yes Skip confirmation prompts
```

Expand Down
Loading