Use the CLI for Studio lifecycle operations when working from a terminal, automation script, or SSH-oriented workflow.
$ 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 CPU$ lightning studio list --teamspace owner/teamspace --sort-by status$ lightning studio connect sdk-tutorial-studio --teamspace owner/teamspace$ lightning studio cp ./train.py lit://owner/teamspace/studios/sdk-tutorial-studio/train.py
$ lightning studio ls lit://owner/teamspace/studios/sdk-tutorial-studio/$ lightning studio stop --name sdk-tutorial-studio --teamspace owner/teamspace