Yera Hub
The hub command interacts with a remote Yera Hub instance. Use it to upload
compiled agents, trigger runs and stream their output, inspect uploaded agent
metadata, and delete agents or individual versions. All subcommands resolve the
target hub from the same priority order: an explicit --hub flag, then
pyproject.toml, then the default in yera.toml.
yera hub
Upload, run, list, and delete apps on a remote hub.
yera hub upload
Upload an app from a Python file to the hub.
Args:
app_path: Path to the Python file that defines the app.
app_id: Hub-side app id override. Defaults to the loaded app's
metadata identifier.
hub: Hub name override. Resolution order: this flag, then
``pyproject.toml`` ``[tool.yera] hub``, then ``yera.toml``
``[hubs] default``.
yera hub upload APP_PATH [--app-id STR] [--hub STR]Arguments
Path to the Python file that defines the app.
Options
Hub-side app id override. Defaults to the loaded app's metadata identifier.
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
yera hub run
Run an uploaded app on the hub and stream output.
Args:
app_id: App id on the hub.
app_version: Version to run. If omitted, the hub uses the latest version.
hub: Hub name override. Resolution order: this flag, then
``pyproject.toml`` ``[tool.yera] hub``, then ``yera.toml``
``[hubs] default``.
yera hub run APP_ID [APP_VERSION] [--hub STR]Arguments
App id on the hub.
Version to run. If omitted, the hub uses the latest version.
Options
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
yera hub get
Show one app and its versions as JSON.
Args:
app_id: App id on the hub.
hub: Hub name override. Resolution order: this flag, then
``pyproject.toml`` ``[tool.yera] hub``, then ``yera.toml``
``[hubs] default``.
yera hub get APP_ID [--hub STR]Arguments
App id on the hub.
Options
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
yera hub list
List all apps on the hub as JSON.
Args:
hub: Hub name override. Resolution order: this flag, then
``pyproject.toml`` ``[tool.yera] hub``, then ``yera.toml``
``[hubs] default``.
yera hub list [--hub STR]Options
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
yera hub delete
Delete an app or one of its versions from the hub.
Args:
app_id: App id on the hub.
app_version: If set, delete only this version. If omitted, all versions
are deleted.
hub: Hub name override. Resolution order: this flag, then
``pyproject.toml`` ``[tool.yera] hub``, then ``yera.toml``
``[hubs] default``.
yera hub delete APP_ID [APP_VERSION] [--hub STR]Arguments
App id on the hub.
If set, delete only this version. If omitted, all versions are deleted.
Options
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.