swcli instance
Overviewâ
swcli [GLOBAL OPTIONS] instance [OPTIONS] <SUBCOMMAND> [ARGS]
The instance command includes the following subcommands:
infolist(ls)loginlogoutuse(select)
swcli instance infoâ
swcli [GLOBAL OPTIONS] instance info [OPTIONS] <INSTANCE>
instance info outputs detailed information about the specified Starwhale Instance.
INSTANCE is an instance URI.
swcli instance listâ
swcli [GLOBAL OPTIONS] instance list [OPTIONS]
instance list shows all Starwhale Instances.
swcli instance loginâ
swcli [GLOBAL OPTIONS] instance login [OPTIONS] <INSTANCE>
instance login connects to a Server/Cloud instance and makes the specified instance default.
INSTANCE is an instance URI.
| Option | Required | Type | Defaults | Description |
|---|---|---|---|---|
--username | N | String | The login username. | |
--password | N | String | The login password. | |
--token | N | String | The login token. | |
--alias | Y | String | The alias of the instance. You can use it anywhere that requires an instance URI. |
--username and --password can not be used together with --token.
swcli instance logoutâ
swcli [GLOBAL OPTIONS] instance logout [INSTANCE]
instance logout disconnects from the Server/Cloud instance, and clears information stored in the local storage.
INSTANCE is an instance URI. If it is omiited, the default instance is used instead.
swcli instance useâ
swcli [GLOBAL OPTIONS] instance use <INSTANCE>
instance use make the specified instance default.
INSTANCE is an instance URI.