Studios CLI examples
Use the CLI for Studio lifecycle operations when working from a terminal, automation script, or SSH-oriented workflow.
Create and start a Studio
$ pip install lightning-sdk -U
$ lightning login
$ lightning studio create \
--name sdk-tutorial-studio \
--teamspace owner/teamspace
$ lightning studio start \
--name sdk-tutorial-studio \
--teamspace owner/teamspace \
--machine CPUInspect Studios
$ lightning studio list --teamspace owner/teamspace --sort-by statusConnect to a Studio
$ lightning studio connect sdk-tutorial-studio --teamspace owner/teamspaceCopy and list files
$ lightning studio cp ./train.py lit://owner/teamspace/studios/sdk-tutorial-studio/train.py
$ lightning studio ls lit://owner/teamspace/studios/sdk-tutorial-studio/Stop the Studio
$ lightning studio stop --name sdk-tutorial-studio --teamspace owner/teamspaceWas this page helpful?
Thanks for the feedback.