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 CLI is one command, yd. Most of what it does names the object acted on, then what to do to it — yd workrequirement submit, yd instance terminate — and yd <noun> --help lists a noun's verbs; yd help lists everything. The commands support:

  • Work Requirements — submitting, cancelling, holding, starting, finishing and reprioritising them, and comparing them against Worker Pools, with yd workrequirement (short form yd wr)
  • Task Groups and Tasks — reprioritising Task Groups and comparing them against Worker Pools with yd taskgroup (yd tg), and aborting running Tasks with yd task
  • Worker Pools — provisioning, resizing and shutting them down, and refreshing or regenerating Configured Worker Pools' tokens, with yd workerpool (yd wp)
  • Compute Requirements — instantiating, resizing, stopping, starting, reprovisioning and terminating them with yd computerequirement (yd cr)
  • Instances and Nodes — stopping, starting, restarting, deprovisioning and terminating individual Instances with yd instance, and Worker Pool Nodes' Instances with yd node, which also shuts Nodes down and submits Node Actions to them
  • Resources — creating, updating and removing Compute Source Templates, Compute Requirement Templates, Keyrings, Credentials, Image Families, Namespaces, Allowances, Configured Worker Pools, Attribute Definitions, Namespace Policies, Groups, Applications and Users (update only) with yd resource, from specification files or, for a resource of a few properties, on the command line (yd resource create --type Keyring --set name=team-keys), and showing or removing them by name
  • Allowances — boosting them with yd allowance
  • Remote data stores — uploading, downloading, listing, deleting and copying files with yd data
  • Cloud provider setup (AWS, Azure, GCP) with the yd cloudwizard command
  • Cloud regions, instance types and prices, as the YellowDog Platform knows them, with yd cloudinfo
  • Inspecting — listing YellowDog items with yd list, filtered by name, status or provider, or within one Work Requirement, Task Group, Compute Requirement, Worker Pool or Node (yd task list --within <wr>), the largest listings stopping at 1000 items unless --limit says otherwise, showing any entity's details by its YellowDog ID with yd show, following event streams with yd follow, and waiting for Work Requirements, Worker Pools or Compute Requirements to finish with yd wait; every noun also has list and show verbs for its own objects
  • Showing the details of the current Application with the yd application command
  • Diagnosing the configuration, credentials and connectivity with the yd doctor command
  • Reporting the processed values of variable substitutions with the yd variables command
  • Completing commands, verbs, options and their values on Tab, in bash, zsh, fish and PowerShell, with the yd completion command

Utility commands are also provided: yd completion, 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 — the yd data verbs upload, download, delete, ls and 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 running 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 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 14.1.0

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 14.1.0
File Size Uploaded Provenance Actions
yellowdog_cli-14.1.0.tar.gz 1.1 MB Without provenance Details for yellowdog_cli-14.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.8 MB

Release files / yellowdog_cli-14.1.0.tar.gz

Download URL yellowdog_cli-14.1.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6ebe3467f49e41016475da957e4cb0ec8d5835c6a5caaab57f4a8bc9a9fe671b
BLAKE2b-256 checksum
How to use checksums
04a04a28da84b858f4b085d8ba3c10be63391481d11272749219e9d56c8e26d6
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-14.1.0-py3-none-any.whl

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

Security for yellowdog-cli 14.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

14.1.0 This release

2 release files No provenance

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