yera.cli.commands.hub
Hub app commands — upload, run, get, list, and delete apps on a hub.
Symbols
delete
delete(
app_id: str,
app_version: int | None = None,
hub: str | None = None,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneDelete an app or one of its versions from the hub.
Parameters
App id on the hub.
If set, delete only this version. If omitted, all versions are deleted.
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
get
get(
app_id: str,
hub: str | None = None,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneShow one app and its versions as JSON.
Parameters
App id on the hub.
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
list_apps
list_apps(
hub: str | None = None,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneList all apps on the hub as JSON.
Parameters
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
run
run(
app_id: str,
app_version: int | None = None,
hub: str | None = None,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneRun an uploaded app on the hub and stream output.
Parameters
App id on the hub.
Version to run. If omitted, the hub uses the latest version.
Hub name override. Resolution order: this flag, then
pyproject.toml [tool.yera] hub, then yera.toml
[hubs] default.
upload
upload(
app_path: str,
app_id: str | None = None,
hub: str | None = None,
ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → NoneUpload an app from a Python file to the hub.
Parameters
Path to the Python file that defines the app.
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.