Skip to main content

Command Line Interface for the YellowDog Platform

PyPI version Python versions Licence

Overview

This is a set of Python CLI commands for interacting with the YellowDog Platform, also providing examples of usage of the YellowDog Python SDK.

The commands support:

  • Aborting running Tasks with the yd-abort command
  • Boosting Allowances with the yd-boost command
  • Cancelling Work Requirements with the yd-cancel command
  • Cloud provider setup (AWS, Azure, GCP) with the yd-cloudwizard command
  • Cloud regions, instance types and prices, as the YellowDog Platform knows them, with the yd-cloud-info command
  • Comparing whether Worker Pools are a match for Task Groups with the yd-compare command
  • Copying files between remote data stores with the yd-copy command
  • Creating, Updating and Removing Compute Source Templates, Compute Requirement Templates, Keyrings, Credentials, Image Families, Allowances, Configured Worker Pools, User Attributes, Namespace Policies, Groups, and Applications with the yd-create and yd-remove commands
  • Deleting files from a remote data store with the yd-delete command
  • Downloading files from a remote data store with the yd-download command
  • Finishing Work Requirements with the yd-finish command
  • Following Event Streams for Work Requirements, Worker Pools and Compute Requirements with the yd-follow command
  • Instantiating Compute Requirements with the yd-instantiate command
  • Listing YellowDog items using the yd-list command
  • Listing remote data store contents with the yd-ls command
  • Prioritising Work Requirements and Task Groups after submission with the yd-priority command
  • Provisioning Worker Pools with the yd-provision command
  • Refreshing and Regenerating the tokens of Configured Worker Pools with the yd-token command
  • Resizing Worker Pools and Compute Requirements with the yd-resize command
  • Showing the details of any YellowDog entity using its YellowDog ID with the yd-show command
  • Showing the details of the current Application with the yd-application command
  • Shutting Down Worker Pools and Nodes with the yd-shutdown command
  • Starting HELD Work Requirements and Holding (or pausing) RUNNING Work Requirements with the yd-start and yd-hold commands
  • Stopping, Starting and Restarting Compute Requirements and Instances with the yd-compute-stop, yd-compute-start and yd-compute-restart commands
  • Deprovisioning Instances, reducing their Compute Requirements' target counts, with the yd-compute-deprovision command
  • Reprovisioning Compute Requirements, restoring their target instance counts, with the yd-compute-reprovision command
  • Submitting Work Requirements with the yd-submit command
  • Submitting Node Actions to Worker Pool nodes with the yd-nodeaction command
  • Terminating Compute Requirements with the yd-terminate command
  • Uploading files to a remote data store with the yd-upload command
  • Reporting the processed values of variable substitutions with the yd-variables command
  • Waiting for Work Requirements, Worker Pools or Compute Requirements to reach a terminal state with the yd-wait command

Utility commands are also provided: yd-doctor, yd-format-json, yd-help, yd-jsonnet2json, yd-schema, and yd-version. For a full list of commands run yd-help.

The remote data store commands — yd-upload, yd-download, yd-delete, yd-ls and yd-copy — use rclone, and do not require YellowDog credentials. An rclone binary already on your PATH is used in preference and is never modified; otherwise one is downloaded to a per-user cache directory the first time it's needed.

Installation

Python 3.10 or later is required.

pipx (recommended) — installs into an isolated environment and puts the commands on your PATH automatically:

pipx install yellowdog-cli

uv:

uv tool install yellowdog-cli

pip + virtual environment:

python3 -m venv yd-env
source yd-env/bin/activate   # macOS / Linux; on Windows: yd-env\Scripts\activate
pip install -U yellowdog-cli

Optional Extras

Four optional extras are available:

Extra Provides
jsonnet Jsonnet templating of resource specifications
commander The yd-commander desktop GUI, described below
cloudwizard The cloud provider SDKs required by the yd-cloudwizard command
mcp The yd-mcp MCP server, described below

List the ones you need in square brackets at installation time, e.g. to install all four:

pipx install "yellowdog-cli[jsonnet,commander,cloudwizard,mcp]"    # pipx
uv tool install "yellowdog-cli[jsonnet,commander,cloudwizard,mcp]" # uv
pip install -U "yellowdog-cli[jsonnet,commander,cloudwizard,mcp]"  # pip

An extra can also be added to an existing pipx installation without reinstalling it, e.g. pipx inject yellowdog-cli jsonnet.

Commander GUI

yd-commander is an optional cross-platform desktop GUI for driving the CLI, installed via the commander extra above:

pip install -U "yellowdog-cli[commander]"
yd-commander

It works by invoking the yd-* commands on your behalf and displaying their output. See the Commander documentation for details.

MCP Server

yd-mcp is an optional MCP server exposing the yd-* commands as tools for an agent, installed via the mcp extra above:

pip install -U "yellowdog-cli[mcp]"
yd-mcp config.toml

It runs the yd-* commands on an agent's behalf, with --json, and returns their results. See the MCP server documentation for details.

Documentation

Please see the documentation in the GitHub repository for full details. This documentation should be read in conjunction with the main YellowDog Documentation.

Metadata

Release files for yellowdog-cli 13.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yellowdog-cli 13.3.1
File Size Uploaded
yellowdog_cli-13.3.1.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for yellowdog-cli 13.3.1
File Interpreter ABI Platform
yellowdog_cli-13.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / yellowdog_cli-13.3.1.tar.gz

Download URL yellowdog_cli-13.3.1.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
48b46b3f8a5a585e607b3561aa1664f1f2377f7f0c534d8e31ba873bf24716bb
BLAKE2b-256 checksum
How to use checksums
8fdc55f68c6a2320a6c064860232a60ab6fad91d05a18414dae51c347b2a4d3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / yellowdog_cli-13.3.1-py3-none-any.whl

Download URL yellowdog_cli-13.3.1-py3-none-any.whl
Size 605.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6057b8a63f0fbb8d4beee7838733cfa0b428e75b2d0eb067f8172b6d0084f7b
BLAKE2b-256 checksum
How to use checksums
cdc7e372a65ad1388880411db28aedb75eacaaf03c5b9daa60f6235d4e55b257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

13.3.1 This release

2 release files

12.1.1

2 release files

12.1.0

2 release files

12.0.0

2 release files

11.3.0

2 release files

11.2.0

2 release files

11.1.0

2 release files

11.0.0

2 release files

10.8.8

2 release files

10.8.7

2 release files

10.8.6

2 release files

10.8.5

2 release files

10.8.4

2 release files

10.8.3

2 release files

10.8.2

2 release files

10.8.1

2 release files

10.7.1

2 release files

10.7.0

2 release files

10.6.0

2 release files

10.5.0

2 release files

10.4.0

2 release files

10.3.0

2 release files

10.2.0

2 release files

10.1.0

2 release files

10.0.1

2 release files

10.0.0

2 release files

9.7.0

2 release files

9.6.1

2 release files

9.6.0

2 release files

9.5.0

2 release files

9.4.1

2 release files

9.4.0

2 release files

9.3.5

2 release files

9.3.4

2 release files

9.3.3

2 release files

9.3.2

2 release files

9.3.1

2 release files

9.3.0

2 release files

9.2.4

2 release files

9.2.3

2 release files

9.2.2

2 release files

9.2.1

2 release files

9.2.0

2 release files

9.1.1

2 release files

9.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page