lep pod

Manages pods on the Lepton AI cloud.

A Pod (short for "Lepton AI Pod") is a container runtime that allows you to run interactive sessions on the Lepton AI cloud. Think of it as a remote server that you can access via SSH, and use it as a remote development environment. You can use it to run Jupyter notebooks, or to run a terminal session, similar to a cloud VM but much more lightweight.

Usage

lep pod [OPTIONS] COMMAND [ARGS]...

Options

  • --help : Show this message and exit.

Commands

  • create : Creates a pod with the given resource shape, mount, env and...
  • list : Lists all pods in the current workspace.
  • remove : Removes a pod.

lep pod create

Creates a pod with the given resource shape, mount, env and secret.

Usage

lep pod create [OPTIONS]

Options

  • -n, --name TEXT : Name of the pod to create.
  • --resource-shape TEXT : Resource shape for the pod. Available types are: 'cpu.small', 'cpu.medium', 'cpu.large', 'gpu.t4', 'gpu.a10'.
  • --mount TEXT : Persistent storage to be mounted to the deployment, in the format STORAGE_PATH:MOUNT_PATH.
  • -e, --env TEXT : Environment variables to pass to the deployment, in the format NAME=VALUE.
  • -s, --secret TEXT : Secrets to pass to the deployment, in the format NAME=SECRET_NAME. If secret name is also the environment variable name, you can omit it and simply pass SECRET_NAME.
  • --help : Show this message and exit.

lep pod list

Lists all pods in the current workspace.

Usage

lep pod list [OPTIONS]

Options

  • -p, --pattern TEXT : Regular expression pattern to filter pod names.
  • --help : Show this message and exit.

lep pod remove

Removes a pod.

Usage

lep pod remove [OPTIONS]

Options

  • -n, --name TEXT : The pod name to remove. [required]
  • --help : Show this message and exit.