lep workspace
Manage workspace access to the Lepton AI cloud.
Workspace is the place you perform daily operation with photons, deployments, storage, and other resources.
The workspace commands allow you to log in and out of multiple workspaces, and keeps track of the workspace credentials you are currently working on.
Usage
lep workspace [OPTIONS] COMMAND [ARGS]...
Options
--help
: Show this message and exit.
Commands
id
: Prints the id of the current workspace.list
: List current workspaces and their urls on record.login
: Logs in to a workspace.logout
: Logout of the Lepton AI cloud.remove
: Remove a workspace from the record.removeall
: Remove all workspaces.status
: Prints the status of the current workspace.token
: Prints the authentication token of the current workspace.url
: Prints the url of the current workspace.
lep workspace login
Logs in to a workspace. This also verifies that the workspace is accessible.
Usage
lep workspace login [OPTIONS]
Options
-i
,--workspace-id TEXT
: The workspace id to log in to.-t
,--auth-token TEXT
: Authentication token for the workspace.--help
: Show this message and exit.
lep workspace logout
Logout of the Lepton AI cloud.
Usage
lep workspace logout [OPTIONS]
Options
--purge
: Purge the credentials of the lepton login info.--help
: Show this message and exit.
lep workspace list
List current workspaces and their urls on record. For any workspace
displayed in the list, you can log in to it by lep workspace login -i <id>
.
Usage
lep workspace list [OPTIONS]
Options
--help
: Show this message and exit.
lep workspace remove
Remove a workspace from the record. After removal, the locally stored url and auth token will be deleted. If the workspace is currently logged in, you will be logged out.
Usage
lep workspace remove [OPTIONS]
Options
-i
,--workspace-id TEXT
: ID of the workspace [required]--help
: Show this message and exit.
lep workspace removeall
Remove all workspaces.
Usage
lep workspace removeall [OPTIONS]
Options
--help
: Show this message and exit.
lep workspace id
Prints the id of the current workspace. This is useful when you want to obtain the workspace id in the command line in e.g. a shell script, but do not want to hardcode it in the source file.
Usage
lep workspace id [OPTIONS]
Options
--help
: Show this message and exit.
lep workspace token
Prints the authentication token of the current workspace. This is useful when you want to obtain the workspace token in the command line in e.g. a shell script, but do not want to hardcode it in the source file.
Usage
lep workspace token [OPTIONS]
Options
--help
: Show this message and exit.
lep workspace url
Prints the url of the current workspace. This is useful when you want to obtain the workspace url in the command line in e.g. a shell script, but do not want to hardcode it in the source file.
Usage
lep workspace url [OPTIONS]
Options
--help
: Show this message and exit.
lep workspace status
Prints the status of the current workspace.
Usage
lep workspace status [OPTIONS]
Options
--help
: Show this message and exit.