---
title: Studios CLI examples
description: 'Use the CLI for Studio lifecycle operations when working from a terminal,'
canonical: 'https://lightning.ai/docs/sdk/stable/examples/studios-cli'
---
# Studios CLI examples {#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 {#create-and-start-a-studio}

```console
$ 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
```

## Inspect Studios {#inspect-studios}

```console
$ lightning studio list --teamspace owner/teamspace --sort-by status
```

## Connect to a Studio {#connect-to-a-studio}

```console
$ lightning studio connect sdk-tutorial-studio --teamspace owner/teamspace
```

## Copy and list files {#copy-and-list-files}

```console
$ 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 {#stop-the-studio}

```console
$ lightning studio stop --name sdk-tutorial-studio --teamspace owner/teamspace
```

---

**Navigation**

- Parent: [Examples](/docs/sdk/2026.11.04/examples.md)
