Skip to main content

Delta CLI

Delta CLI is a command line interface for the Delta service.

This repository contains the Delta command router, version output, and browser-based CLI authentication.

Features

  • Built-in help via delta --help and per-command --help
  • Version output via delta version and delta --version
  • OAuth login with Authorization Code + PKCE
  • One-shot 127.0.0.1:8400 callback server or an optional Console callback handoff
  • Session storage in ~/.trampoline-ai/delta/auth.json with owner-only permissions
  • Automatic bearer authentication for service API commands

Requirements

  • Python 3.13+
  • uv

Installation

From this directory, install the CLI in editable mode:

uv tool install -e .

You can also run the CLI directly during development:

uv run --with-editable . delta --help
uv run --with-editable . delta version

Authentication Setup

The CLI uses a public OAuth application. Do not use secret keys for interactive CLI user login.

The local session is stored in ~/.trampoline-ai/delta/auth.json. Delta creates the containing directory with mode 0700 and writes the credential file atomically with mode 0600.

Create an OAuth application in the same auth project as ../console:

  • Default redirect URI: http://127.0.0.1:8400/callback
  • Console callback URI for --manual-callback: https://cloud.avalanche.run/oauth/callback
  • Public client: enabled
  • PKCE required: enabled
  • Scopes: profile email offline_access user:org:read

A Clerk administrator must register the applicable redirect URI before its login mode can succeed.

The production issuer, public OAuth client ID, and callback port are built in. Sign in without configuration:

delta login

For another deployment, override the public auth configuration explicitly:

export DELTA_AUTH_ISSUER_URL="https://your-auth-issuer.example.com"
export DELTA_AUTH_CLIENT_ID="your_oauth_client_id"

For local development in this monorepo, the CLI can also derive the issuer from DELTA_AUTH_PUBLISHABLE_KEY.

Command Overview

delta version

Shows the installed Delta CLI version.

delta auth login

Signs in to Delta through your browser.

delta login

The CLI uses the registered callback port 8400. Pass --callback-port 0 for a random loopback port when another provider supports RFC 8252 loopback redirects.

Use --no-browser to print the sign-in URL instead of opening it:

delta auth login --no-browser

Use the Console callback when the browser cannot reach the local loopback listener:

delta auth login --manual-callback

Manual callback sign-in requires Delta CLI 0.1.6 or newer. Older CLI releases cannot complete this handoff; upgrade the CLI and start sign-in again if the Console reports that an upgrade is required.

Complete sign-in in the browser, select Copy response at the Console callback page, then paste only that response into Delta's hidden terminal prompt. Never copy, paste, log, or share the raw browser callback URL. The response is bound to the in-memory PKCE sign-in attempt; do not paste it into logs or chat.

delta auth status

Shows whether you are signed in.

delta auth whoami

Shows the signed-in account.

delta auth logout

Signs out of Delta.

delta --help

Shows available commands and global options.

Portable Avalanche workspaces

Capture one or more local directories as typed ava.Workspace run inputs:

delta runs create demo-flow \
  --workspace source=./input-tree \
  --workspace config=./config-tree

Each field name must be unique across --workspace and JSON inputs. Delta captures the directory with Avalanche's workspace manifest codec and uploads the manifest through the run-scoped artifact path; workflow code receives ava.Workspace when its declared input field uses that annotation. Manifests are limited to 48 MiB; the CLI rejects oversized trees from directory metadata before reading their file contents.

Materialize terminal workspace trees into a new local directory:

delta runs output run_01KCVST2FP4QC5NKZNN5NS0Z2W --output-dir ./downloaded

The destination must not already exist. Workspace values are written as workspace-0001, workspace-0002, and so on in deterministic result order. Mixed ava.File references remain in the result envelope. Without --output-dir, runs output continues to print that standard Avalanche result document unchanged.

Service API commands automatically load and refresh the signed-in session from ~/.trampoline-ai/delta/auth.json. An explicit --token wins, then a nonblank DELTA_TOKEN, then the saved session; the user TOML configuration rejects plaintext tokens.

The API enforces the selected Clerk organization and its role permissions. The signed-in user must belong to the requested organization, and that role must include the Delta action used by the service command.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trampoline_delta-0.1.21.tar.gz (183.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trampoline_delta-0.1.21-py3-none-any.whl (161.6 kB view details)

Uploaded Python 3

File details

Details for the file trampoline_delta-0.1.21.tar.gz.

File metadata

  • Download URL: trampoline_delta-0.1.21.tar.gz
  • Upload date:
  • Size: 183.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trampoline_delta-0.1.21.tar.gz
Algorithm Hash digest
SHA256 5e4d3f17ccb235f172a159fec0a54d8f16484d37c55e90852ef7d94da4c65ce9
MD5 54b8aec9e33c180de331f995261f425e
BLAKE2b-256 80ab886a46b02729ad5c562a2bf6b336467c515bf0f21827194bc605280547bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for trampoline_delta-0.1.21.tar.gz:

Publisher: release.yml on Trampoline-AI/trampoline-ai.delta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trampoline_delta-0.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for trampoline_delta-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 83acf6f62e6b6d9588ce3880fcab81f843c64303a8f7534e9db4765ddfde321a
MD5 fa7bd5e0ed3aadbc8304c8208420a5c2
BLAKE2b-256 3e422e013d62b24493d8ca2b68d82b316c284cd7ee2b1b49102cc50ab95a89a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for trampoline_delta-0.1.21-py3-none-any.whl:

Publisher: release.yml on Trampoline-AI/trampoline-ai.delta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.43

2 files

0.1.42

2 files

0.1.41

2 files

0.1.40

2 files

0.1.39

2 files

0.1.38

2 files

0.1.37

2 files

0.1.36

2 files

0.1.35

2 files

0.1.33

2 files

0.1.32

2 files

0.1.31

2 files

0.1.30

2 files

0.1.29

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

This release

0.1.21 This release

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 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