Skip to content

Environments

ubiops environments

Command: ubiops environments

Alias: ubiops envs


ubiops environments list

Command: ubiops environments list

Description:

List all your environments in your project.

The <labels> option can be used to filter on specific labels.

Arguments: -

Options:

  • -lb/--labels
    Labels defined as key/value pairs
    This option can be provided multiple times in a single command

  • -env-type/--environment_type
    Environment type. It can be either base or custom.

  • -fmt/--format
    The output format


ubiops environments get

Command: ubiops environments get

Description:

Get the environment details.

If you specify the <output_path> option, this location will be used to store the environment settings in a yaml file. You can either specify the <output_path> as file or directory. If the specified <output_path> is a directory, the settings will be stored in environment.yaml.

Example of yaml content:

environment_name: custom-environment
environment_display_name: Custom environment for Python 3.9
environment_description: Environment created via command line.
environment_labels:
    my-key-1: my-label-1
    my-key-2: my-label-2
base_environment: python3-9

Arguments:

  • [required] environment_name

Options:

  • -o/--output_path
    Path to file or directory to store environment yaml file

  • -q/--quiet
    Suppress informational messages

  • -fmt/--format
    The output format


ubiops environments create

Command: ubiops environments create

Description:

Create an environment.

It is possible to define the parameters using a yaml file. For example:

environment_name: my-environment-name
environment_display_name: Custom environment for Python 3.9
environment_description: Environment created via command line.
environment_labels:
    my-key-1: my-label-1
    my-key-2: my-label-2
base_environment: python3-9

Those parameters can also be provided as command options. If both a <yaml_file> is set and options are given, the options defined by <yaml_file> will be overwritten by the specified command options. The environment name can either be passed as command argument or specified inside the yaml file using <environment_name>.

Arguments:

  • environment_name

Options:

  • -base-env/--base_environment
    Base environment to use for the environment

  • --environment_display_name
    Human readable name for the environment

  • -desc/--environment_description
    The environment description

  • -lb/--labels
    Labels defined as key/value pairs
    This option can be provided multiple times in a single command

  • -f/--yaml_file
    Path to a yaml file

  • -fmt/--format
    The output format


ubiops environments update

Command: ubiops environments update

Description:

Update an environment.

It is possible to define the parameters using a yaml file or passing the options as command options. For example:

environment_name: my-environment-name
environment_display_name: Custom environment for Python 3.9
environment_description: Environment created via command line.
environment_labels:
    my-key-1: my-label-1
    my-key-2: my-label-2

If both a <yaml_file> is set and options are given, the options defined by <yaml_file> will be overwritten by the specified command options.

Arguments:

  • [required] environment_name

Options:

  • -n/--new_name
    The new environment name

  • --environment_display_name
    Human readable name for the environment

  • -desc/--environment_description
    The environment description

  • -lb/--labels
    Labels defined as key/value pairs
    This option can be provided multiple times in a single command

  • -f/--yaml_file
    Path to a yaml file

  • -q/--quiet
    Suppress informational messages


ubiops environments delete

Command: ubiops environments delete

Description:

Delete an environment.

Arguments:

  • [required] environment_name

Options:

  • -y/--assume_yes
    Assume yes instead of asking for confirmation

  • -q/--quiet
    Suppress informational messages


ubiops environments wait

Command: ubiops environments wait

Description:

Wait for an environment to be ready.

Arguments:

  • [required] environment_name

Options:

  • -t/--timeout
    Timeout in seconds for the operation

  • --stream_logs
    Stream logs while waiting

  • -q/--quiet
    Suppress informational messages