Commands and common options

This page describes commands supported by the datalab command-line tool, and the options common to all of those commands.

Usage

datalab [-h] [--project PROJECT] [--zone ZONE] [--quiet]
        [--verbosity {debug,info,warning,error,critical,none}]
        {stop,create,list,connect,delete} ...

Available Commands

list

List the existing Datalab instances in a project

create

Create and connect to a new Datalab instance

connect

Connect to an existing Datalab instance

list

List the existing Datalab instances in a project

stop

Stop an existing Datalab instance

delete

Delete an existing Datalab instance

Common Options

-h/--help

Show a help message and exit

--project PROJECT

The Google Cloud Platform project name to use for this invocation.

If omitted then the current project is assumed.

--zone ZONE

The zone containing the instance. If not specified, you may be prompted to select a zone.

To avoid prompting when this flag is omitted, you can set the compute/zone property:

$ gcloud config set compute/zone ZONE

A list of zones can be fetched by running:

$ gcloud compute zones list

To unset the property, run:

$ gcloud config unset compute/zone

Alternatively, the zone can be stored in the environment variable CLOUDSDK_COMPUTE_ZONE.

--quiet

Do not issue any interactive prompts

--verbosity {debug,info,warning,error,critical,none}

Override the default output verbosity for this command.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Google Cloud Datalab Documentation