dmscli login

AI Tools

Logs in to the Lightbits Data Mobility Service (DMS).

Synopsis

Logs in to the Lightbits Data Mobility Service (DMS) with a valid username and password, to get a bearer token to access the DMS system. Optionally, you can use the save flag to save the login information in the config file for reuse.

dmscli login [flags]

Examples:

# dmscli login --username <username> --password <password> dmscli login --username admin-dms --password password123 --base-url https://localhost --save

Flag

Short

Type

Default

Description

--help

-h

bool


Help for login.

--base-url


string

"https://localhost"

The endpoint of the DMS service.

--password

-p

string


The password to log in to DMS (required).

--save

-s

bool

true

Save login information in the config file for reuse.

--username

-u

string


The username to log in to DMS (required).

Response Type

LoginResponse - Login Response

The response to the login to the DMS service.

Name

Type

Description

TokenType

string

The type of token.

ExpiresIn

uint64

The time in seconds when the token will expire.

IdToken

string

The ID of the token.