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>

# Delete a terminal (succeeded or failed) job and its stored data
apheris-foundry jobs delete --id <job-id>

# Skip the confirmation prompt
apheris-foundry jobs delete --id <job-id> --yes

Want to try prediction with a template? The template smoke example includes a sample CIF, a matching request, and commands to run a prediction and check the downloaded results.

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> [--name <name>] [--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
apheris-foundry jobs delete --id <job-id> Permanently delete a terminal job and its stored data (--yes skips confirmation)

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

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

--name optionally names the run. Omitted or blank names submit an unnamed run.

--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.6.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.6.0
File Size Uploaded Provenance
apheris_foundry_cli-0.6.0.tar.gz 82.7 kB With provenance Details

Built distribution (wheel)

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

Total release size: 141.3 kB

Release files / apheris_foundry_cli-0.6.0.tar.gz

Download URL apheris_foundry_cli-0.6.0.tar.gz
Size 82.7 kB
Tags Source
SHA-256 checksum
How to use checksums
938ab6e6f450f9157fbe0d9b39bdc12764dce95bf0bd2b6f8ae6aee15cbd22e9
BLAKE2b-256 checksum
How to use checksums
06e6baa569a014b5851372b73fce6a551aa08081605771437fb38f2de67366b6
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 Oct 7, 2026.

Transparency log

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

Download URL apheris_foundry_cli-0.6.0-py3-none-any.whl
Size 58.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0028846574d806e342c7033a76aa23ceb2a3959bba503ae0751d944e7c2b7288
BLAKE2b-256 checksum
How to use checksums
7e6c5e23f440c3f17e8738fdd13ab37a94017c184a6d038e5aab1e73a1f9b5cd
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 Oct 7, 2026.

Transparency log

Security for apheris-foundry-cli 0.6.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.6.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 Oct 7, 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