Skip to main content

Apheris Foundry CLI

Command-line interface for submitting and managing Foundry workflow runs on an Apheris Hub instance.

Requirements

  • Python 3.10 or later
  • Access to an Apheris Hub instance

Installation

conda

Recommended if you already use conda for scientific Python work. A dedicated environment avoids dependency conflicts.

Linux / macOS

conda create -n apheris-foundry python=3.11 -y
conda activate apheris-foundry
pip install apheris-foundry-cli

Windows (Anaconda Prompt or PowerShell)

conda create -n apheris-foundry python=3.11 -y
conda activate apheris-foundry
pip install apheris-foundry-cli

Activate the environment at the start of each session with conda activate apheris-foundry.

venv (standard Python)

Linux / macOS (venv)

python3 -m venv ~/.venvs/apheris-foundry
source ~/.venvs/apheris-foundry/bin/activate
pip install apheris-foundry-cli

Windows (PowerShell, venv)

python -m venv $env:USERPROFILE\.venvs\apheris-foundry
& $env:USERPROFILE\.venvs\apheris-foundry\Scripts\Activate.ps1
pip install apheris-foundry-cli

Activate the environment at the start of each session with the activate command above.

Verify

apheris-foundry --version
apheris-foundry --help

Upgrade

pip install --upgrade apheris-foundry-cli

Quick start

# Log in with your Apheris Hub URL
apheris-foundry login --url https://hub.example.com

# See available workflow definitions
apheris-foundry workflows list

# Submit a run
apheris-foundry workflows run --workflow predict --input ./request.json

# Inspect the model IDs, weights, and default parameters advertised by Hub
apheris-foundry workflows models --workflow predict

# Override prediction parameters with a Hub-schema-validated JSON object
apheris-foundry workflows run --workflow predict --input ./request.json \
  --model-params '{"seeds":[7,9],"num_diffusion_samples":3}'

# Or provide the same JSON object from a file
apheris-foundry workflows run --workflow predict --input ./request.json \
  --model-params @./model-params.json

# Select a non-default model/weight advertised by the workflow
apheris-foundry workflows run --workflow predict --input ./request.json \
  --param model=<model-id> --weight <weight-version> \
  --model-params @./model-params.json

# List submitted runs
apheris-foundry jobs list

# Filter by workflow
apheris-foundry jobs list --workflow predict

# Inspect a run
apheris-foundry jobs get --id <job-id>

# Stream logs
apheris-foundry jobs logs --id <job-id>

# Download results
apheris-foundry jobs download --id <job-id>

# Print the error for a failed run
apheris-foundry jobs error --id <job-id>

Command reference

Authentication

Command Description
apheris-foundry login Log in to a Hub instance
apheris-foundry logout Log out of the current session

Workflow definitions (workflows)

Command Description
apheris-foundry workflows list List workflow definitions exposed by Hub
apheris-foundry workflows get --workflow <id> Inspect one workflow definition and advertised model defaults
apheris-foundry workflows models --workflow <id> List models, weights, and default prediction parameters advertised by Hub (--json includes full metadata)
apheris-foundry workflows graph --workflow <id> Show the workflow DAG
apheris-foundry workflows run --workflow <id> [--model-params <JSON|@file>] Submit a workflow run with Hub-schema-validated model parameters

Run instances (runs)

Command Description
apheris-foundry jobs list [--workflow <id>] List submitted jobs
apheris-foundry jobs get --id <job-id> Inspect a job and its artifacts
apheris-foundry jobs logs --id <job-id> Print logs for a job
apheris-foundry jobs error --id <job-id> Print the saved error for a failed job
apheris-foundry jobs download --id <job-id> Download results for a completed job

Use --help on any command for the full option reference and examples:

apheris-foundry workflows run --help
apheris-foundry jobs get --help

--model-params accepts one JSON object. Use an inline object for short overrides, or prefix a JSON filename with @ to load the object from that file. Before submitting the run, the CLI retrieves the selected model version, weight, and capability schema from Hub and validates the object. Use workflows models to discover available model IDs and weights.

License

This package is licensed under the Apheris Foundry Software License. The full license text is also included in every published wheel as LICENSE.

Support

Contact support@apheris.com for access and deployment assistance.

Metadata

Release files for apheris-foundry-cli 0.5.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 apheris-foundry-cli 0.5.0
File Size Uploaded Provenance
apheris_foundry_cli-0.5.0.tar.gz 79.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for apheris-foundry-cli 0.5.0
File Interpreter ABI Platform
apheris_foundry_cli-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 137.2 kB

Release files / apheris_foundry_cli-0.5.0.tar.gz

Download URL apheris_foundry_cli-0.5.0.tar.gz
Size 79.8 kB
Tags Source
SHA-256 checksum
How to use checksums
39cecb9fdfdfd1c1ffe90879e124518fbe2badbc4694def332b30f23e2331922
BLAKE2b-256 checksum
How to use checksums
4c5b4a2e695dfc6da6f765d7132140297d89b6656800e27574d5dd01d415c33c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / apheris_foundry_cli-0.5.0-py3-none-any.whl

Download URL apheris_foundry_cli-0.5.0-py3-none-any.whl
Size 57.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dd921197d7dc475b9e026f527b5f3f55c1cd6e3ba6ce698e3d5eccfc8a1be8a
BLAKE2b-256 checksum
How to use checksums
df95657aaed702227f27b83d62827ff812fa0102fdf9abf723df59efb991e0df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Security for apheris-foundry-cli 0.5.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apheris_foundry_cli-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

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.

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