Command-line interface overview

Purpose and capabilities of the Workbench command-line interface

Purpose: This document provides a high-level understanding of the capabilities and components of the Workbench CLI.



What is a command-line interface?

A command-line interface is a text-based interface that uses defined commands to execute user actions. Using Verily Workbench via the command line requires more computational knowledge than a graphical user interface (GUI), but the CLI can offer some distinct advantages. For example, familiarity with the CLI can greatly increase the efficiency of performing repetitive tasks, or automate them entirely through the use of scripts.

CLIs were the first type of user interface in computing, and they are still used today by system administrators, software developers, and other technical users.

CLIs offer a number of advantages over graphical user interfaces (GUIs), including:

  • Speed: CLIs can be much faster than GUIs for tasks that require a lot of repetitive input, such as file management and system administration.
  • Power: CLIs offer more power and flexibility than GUIs, allowing users to perform complex tasks that would be difficult or impossible with a GUI.
  • Number of options: CLIs make it possible to offer more options to customize operations without cluttering the graphical interface.

What can you do with the CLI in Verily Workbench?

The Workbench CLI allows you to interact with Verily Workbench programmatically. This makes it possible to script certain operations to occur automatically based on certain triggers, on a schedule, or as part of a broader process, for example.

Most operations that can be done through the GUI can also be done through the CLI. In addition, the CLI also enables you to perform some operations that are not available through the GUI, such as modifying the compute configuration of a cloud app.

For a list of available commands, please see the List of Commands. You can find context-specific CLI usage examples in the CLI Usage Examples section.

Installing and running the Workbench CLI

You can use the Workbench CLI from Linux or MacOS, or from a variety of virtual machines, including apps in Workbench itself. The Workbench CLI package is pre-installed in all app images offered by Workbench.

To use the CLI directly from your own computer or virtual machine, you will need to install the Workbench CLI package as explained in Installing and running the Workbench CLI.

At times you may find it useful to use the Workbench CLI from within a Docker container. This might be the case, for example, if you wanted to automate some aspect of workspace management programmatically using the CLI. For detailed instructions, see Using the Workbench CLI from a container.

Last Modified: 13 November 2024