mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
- Fix 381 files where branding script corrupted variable names (e.g. isHanzo KMSTemplate -> isKmsTemplate) - Rebrand from "Hanzo KMS" to just "KMS" for white-label support (allows Lux KMS, Hanzo KMS, etc. via configuration) - 856 files, purely string replacements, no logic changes
75 lines
1.4 KiB
Plaintext
75 lines
1.4 KiB
Plaintext
---
|
|
title: "kms user"
|
|
description: "Manage logged in users"
|
|
---
|
|
|
|
```bash
|
|
kms user
|
|
```
|
|
|
|
## Description
|
|
|
|
This command allows you to manage the current logged in users on the CLI
|
|
|
|
### Sub-commands
|
|
|
|
<Accordion title="kms user switch" defaultOpen="true">
|
|
Use this command to switch between profiles that are currently logged into the CLI
|
|
|
|
```bash
|
|
kms user switch
|
|
```
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="kms user update domain">
|
|
With this command, you can modify the backend API that is utilized for all requests associated with a specific profile.
|
|
For instance, you have the option to point the profile to use either the KMS Cloud or your own self-hosted KMS instance.
|
|
|
|
```bash
|
|
kms user update domain
|
|
```
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="kms user get token">
|
|
Use this command to get your current KMS access token and session information. This command requires you to be logged in.
|
|
|
|
The command will display:
|
|
|
|
- Your session ID
|
|
- Your full JWT access token
|
|
|
|
```bash
|
|
kms user get token
|
|
```
|
|
|
|
Example output:
|
|
|
|
```bash
|
|
Session ID: abc123-xyz-456
|
|
Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
```
|
|
|
|
### Flags
|
|
|
|
<Accordion title="--plain">
|
|
Output only the JWT token without formatting (no session ID)
|
|
|
|
Default value: `false`
|
|
|
|
```bash
|
|
# Example
|
|
kms user get token --plain
|
|
```
|
|
|
|
Example output:
|
|
|
|
```bash
|
|
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
```
|
|
|
|
</Accordion>
|
|
|
|
</Accordion>
|