CmdID

CmdID / Commands

colab

Command-line interface for Google Colab. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Command-line interface for Google Colab. Some subcommands such as run and exec have their own usage documentation.

Allocate a new named session with a specific GPU

colab new --session session_name --gpu T4Identify

List all active sessions

colab sessionsIdentify

Run a local script on a fresh GPU VM and automatically release it upon completion

colab run --gpu T4 path/to/script.pyIdentify

Execute a local Python script or Jupyter notebook in a specific session

colab exec --session session_name --file path/to/file.pyIdentify

Connect to an interactive TTY shell on the remote VM

colab console --session session_nameIdentify

Mount Google Drive in a specific session

colab drivemount --session session_nameIdentify

Download a file from the remote session

colab download --session session_name path/to/remote_file path/to/local_destinationIdentify

Stop and terminate a specific session

colab stop --session session_nameIdentify