Skip to main content

Middleman CLI

Command-line interface for the Middleman GPU compute platform.

Installation

pip install middleman-cli

Quick Start

# Authenticate with your API key
middleman login

# Submit a training job
middleman run train.py --gpu a100

# Check job status
middleman jobs list
middleman jobs status <job-id>

# View logs
middleman jobs logs <job-id> --follow

# Check credit balance
middleman credits

Commands

Authentication

# Login with API key
middleman login

# Show current user
middleman whoami

# Logout
middleman logout

Running Jobs

# Basic job submission
middleman run train.py --gpu t4

# Advanced options
middleman run train.py \
  --gpu a100 \
  --name "my-experiment" \
  --framework pytorch \
  --max-runtime 8 \
  --env WANDB_API_KEY=xxx \
  --requirements requirements.txt \
  --wait

# GPU options: t4, v100, a100, a100-80gb, h100
# Framework options: pytorch, tensorflow, jax, custom

Managing Jobs

# List jobs
middleman jobs list
middleman jobs list --status running
middleman jobs list --all

# Get job status
middleman jobs status <job-id>
middleman jobs status <job-id> --watch

# View logs
middleman jobs logs <job-id>
middleman jobs logs <job-id> --tail 200
middleman jobs logs <job-id> --follow

# Cancel job
middleman jobs cancel <job-id>

Credits

# Show credit balance
middleman credits

Configuration

# Show config
middleman configure --show

# Set custom API URL
middleman configure --api-url https://custom.api.url

# Reset config
middleman configure --reset

Configuration

Configuration is stored in ~/.middleman/config.yaml:

api_key: mdlm_xxxxx
api_url: https://api.middleman.run/api/v1

Environment Variables

  • MIDDLEMAN_API_KEY - API key (overrides config file)
  • MIDDLEMAN_API_URL - API URL (overrides config file)

Get Your API Key

  1. Sign up at https://middleman.run
  2. Go to https://app.middleman.run/dashboard/api-keys
  3. Create a new API key
  4. Run middleman login

Support

Release files for middleman-cli 0.1.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 middleman-cli 0.1.1
File Size Uploaded
middleman_cli-0.1.1.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for middleman-cli 0.1.1
File Interpreter ABI Platform
middleman_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / middleman_cli-0.1.1.tar.gz

Download URL middleman_cli-0.1.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
895f443c02423531724bf18b50b9f14ba204886826c6f442250efcbfc24adc48
BLAKE2b-256 checksum
How to use checksums
82f4efae4bbae32a3a0d5729becd681ec639133d7b0401784cc70dd094df98b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / middleman_cli-0.1.1-py3-none-any.whl

Download URL middleman_cli-0.1.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56579ec5f2d58968c69763f0d277b5eefc146cb3967df180bf748e96009eb1c8
BLAKE2b-256 checksum
How to use checksums
250e829daa626da945542354527185063bbaaa3c1510ce516a2421317e08d92b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.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