Studio
Persistent GPU dev workspaces.
Usage:
lightning studio [OPTIONS] COMMAND [ARGS]...Commands
Command |
Description |
|---|---|
Connect to a Studio. |
|
Copy a Studio file. |
|
Create a new Studio. |
|
Delete a Studio. |
|
Manage Studio environment variables. |
|
List Studios in a teamspace. |
|
List contents of a directory in Studio. |
|
Open a local file or folder in a Lightning Studio. |
|
Remove a Studio file or directory. |
|
SSH into a Studio. |
|
Start a Studio — a persistent GPU cloud workspace. |
|
Stop a Studio. |
|
Switch a Studio to a different machine type. |
lightning studio connect
Connect to a Studio.
Usage:
lightning studio connect [OPTIONS] [NAME]Arguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Optional Studio name to connect to. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
|
no |
|
Cloud provider or cloud account to create the studio on. Defaults to teamspace default. |
|
|
no |
|
The machine type to start the studio on. Defaults to CPU-4 |
|
|
no |
|
The number and type of GPUs to start the studio on (format: TYPE:COUNT, e.g. L4:4) |
|
|
no |
|
The base studio template name to use for creating the studio. Must be lowercase and hyphenated (use ‘-’ instead of spaces). Run ‘lightning base-studio list’ to see all available templates. Defaults to the first available template. |
|
— |
no |
|
Start the studio on an interruptible instance. |
Examples
lightning studio connectlightning studio cp
Copy a Studio file.
SOURCE: Source file to copy from. For Studio files, use the format lit://<owner>/<my-teamspace>/studios/<my-studio>/<filepath>, or lit:///studios/<my-studio>/<filepath> for the current teamspace.
DESTINATION: Destination file to copy to. For Studio files, use the same formats.
Usage:
lightning studio cp [OPTIONS] SOURCE DESTINATIONArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Source path in the Studio filesystem. |
|
|
yes |
Destination path in the Studio filesystem. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
— |
no |
|
Copy directories recursively |
Examples
lightning studio cp source.txt lit://<owner>/<my-teamspace>/studios/<my-studio>/destination.txt
lightning studio cp source.txt lit:///studios/<my-studio>/destination.txt
lightning studio cp -r source_folder/ lit:///studios/<my-studio>/destination_folder/lightning studio create
Create a new Studio.
Usage:
lightning studio create [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
The name of the studio to create. If not provided, a random name will be generated. |
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
|
no |
|
Cloud provider or cloud account to create the studio on. Defaults to teamspace default. |
|
|
no |
|
The base studio template name to use for creating the studio. Must be lowercase and hyphenated (use ‘-’ instead of spaces). Run ‘lightning base-studio list’ to see all available templates. Defaults to the first available template. |
|
— |
no |
— |
Output the created Studio as JSON. |
Examples
lightning studio createlightning studio delete
Delete a Studio.
Usage:
lightning studio delete [OPTIONS] NAMEArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace). |
|
— |
no |
— |
Delete without prompting for confirmation. |
lightning studio env
Manage Studio environment variables.
Usage:
lightning studio env [OPTIONS] COMMAND [ARGS]...Commands
Command |
Description |
|---|---|
Delete one directly configured Studio environment variable. |
|
List directly configured Studio environment variables. |
|
Set one Studio environment variable from KEY=VALUE. |
lightning studio env delete
Delete one directly configured Studio environment variable.
Usage:
lightning studio env delete [OPTIONS] KEYArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
— |
The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
|
|
no |
— |
The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
|
no |
— |
The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
— |
no |
— |
Output as JSON. |
lightning studio env list
List directly configured Studio environment variables.
Usage:
lightning studio env list [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
— |
The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
|
|
no |
— |
The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
|
no |
— |
The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
— |
no |
— |
Output as JSON. |
lightning studio env set
Set one Studio environment variable from KEY=VALUE.
Usage:
lightning studio env set [OPTIONS] ASSIGNMENTArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
No description provided. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
— |
The teamspace to use, as a bare name or an ‘owner/teamspace’ slug. Defaults to the current teamspace. |
|
|
no |
— |
The organization owning the teamspace (if any). Defaults to the current organization.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
|
no |
— |
The user owning the teamspace (if any). Defaults to the current user.(DEPRECATED: Pass the owner as part of –teamspace instead, e.g. ‘–teamspace owner/teamspace’. This option will be removed in a future release.) |
|
— |
no |
— |
Output as JSON. |
lightning studio list
List Studios in a teamspace.
Usage:
lightning studio list [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
— |
no |
— |
List all studios, not just the ones belonging to the authed user |
|
|
no |
— |
the attribute to sort the studios by. |
|
— |
no |
— |
Output as JSON. |
Examples
lightning studio list --teamspace owner/teamspacelightning studio ls
List contents of a directory in Studio.
PATH: Studio path in the format lit://<owner>/<teamspace>/studios/<studio>/<directory-path>, or lit:///studios/<studio>/<directory-path> for the current teamspace.
Usage:
lightning studio ls [OPTIONS] PATHArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Studio filesystem path to list. |
Examples
lightning studio ls lit://<owner>/<my-teamspace>/studios/<my-studio>/data
lightning studio ls lit:///studios/<my-studio>/datalightning studio open
Open a local file or folder in a Lightning Studio.
Usage:
lightning studio open [OPTIONS] [PATH]Arguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Local path to open in Lightning Studio. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
— |
The teamspace to create the Studio in. Should be of format <OWNER>/<TEAMSPACE_NAME>. If not specified, tries to infer from the environment (e.g. when run from within a Studio.) |
|
|
no |
— |
Cloud provider or cloud account to create the studio on. |
|
— |
no |
|
Resume an incomplete upload. |
|
— |
no |
|
Restart an incomplete upload. |
lightning studio rm
Remove a Studio file or directory.
PATH: Studio path to remove. Use the format lit://<owner>/<my-teamspace>/studios/<my-studio>/<filepath>, or lit:///studios/<my-studio>/<filepath> for the current teamspace.
Usage:
lightning studio rm [OPTIONS] PATHArguments
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
yes |
Studio filesystem path to remove. |
Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
— |
no |
|
Remove directories recursively |
|
— |
no |
|
Ignore nonexistent files, never prompt |
Examples
lightning studio rm lit://<owner>/<my-teamspace>/studios/<my-studio>/file.txt
lightning studio rm -r lit:///studios/<my-studio>/folder/lightning studio ssh
SSH into a Studio.
Usage:
lightning studio ssh [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
|
no |
|
Additional options to pass to the SSH command. Can be specified multiple times. |
Examples
lightning studio ssh --name my-studiolightning studio start
Start a Studio — a persistent GPU cloud workspace.
Usage:
lightning studio start [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
|
Override the default teamspace. |
|
— |
no |
|
Create the Studio if it doesn’t exist. |
|
|
no |
|
Machine type to start on. Default: [bold #6FB3E8]CPU_4[/bold #6FB3E8]. [#6FB3E8]CPU[/#6FB3E8] · [#6FB3E8]T4[/#6FB3E8] · [#6FB3E8]L4[/#6FB3E8] · [#6FB3E8]L40S[/#6FB3E8] · [#6FB3E8]RTXP_6000[/#6FB3E8] · [#6FB3E8]A100[/#6FB3E8] · [#6FB3E8]H100[/#6FB3E8] · [#6FB3E8]H200[/#6FB3E8] · [#6FB3E8]B200[/#6FB3E8] x1-8 · full list: [bold #a78bfa]lightning machine list[/bold #a78bfa] |
|
|
no |
|
GPUs to attach, e.g. [bold #6FB3E8]L4:4[/bold #6FB3E8]. |
|
— |
no |
|
Use a cheaper interruptible (spot) instance. |
|
|
no |
|
Cloud provider or account. Default: teamspace. (with –create) |
Examples
lightning studio start --name my-studio --machine A100 --createlightning studio stop
Stop a Studio.
Usage:
lightning studio stop [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
— |
no |
— |
Output as JSON. |
Examples
lightning studio stop --name my-studiolightning studio switch
Switch a Studio to a different machine type.
Usage:
lightning studio switch [OPTIONS]Options
Option |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
|
no |
|
Studio to use. Falls back to the current Studio or configured default. |
|
|
no |
|
Override default teamspace (format: owner/teamspace) |
|
|
no |
|
The machine type to switch the studio to. |
|
— |
no |
|
Switch the studio to an interruptible instance. |
Was this page helpful?
Thanks for the feedback.