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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| apheris_foundry_cli-0.3.0.tar.gz | 78.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apheris_foundry_cli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 135.4 kB
Release files / apheris_foundry_cli-0.3.0.tar.gz
| Download URL | apheris_foundry_cli-0.3.0.tar.gz |
|---|---|
| Size | 78.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28d02bd8fb7334d857d99b2c9a658f398c8bbfd75ab2982517421107fb8926da
|
|
BLAKE2b-256 checksum How to use checksums |
58018415add11f14066e09ec4c7244b8cbee94ec0989e0355c800f20f6b816bb
|
| 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 2, 2026.
Transparency logRelease files / apheris_foundry_cli-0.3.0-py3-none-any.whl
| Download URL | apheris_foundry_cli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
378c9d5f38c4a33572d0ca6b3e9e3514a3ee5188e818fd34c0e52ed00bc0ec97
|
|
BLAKE2b-256 checksum How to use checksums |
9af612a0a5f535f5e91874e262ae0482106c4b03f9e120d0be885791e72c829c
|
| 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 2, 2026.
Transparency logSecurity for apheris-foundry-cli 0.3.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.
Attestation for apheris_foundry_cli-0.3.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 2, 2026.
Transparency logA 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.