cli.host¶
otto host — run commands, transfer files, and log in to lab hosts.
Commands are synthesised dynamically from @cli_exposed methods on the
resolved host’s class — see otto.cli.expose.
- otto.cli.host.main(ctx: ~typer.models.Context, host_id: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7c9c93ae2b00>] = '', hop: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7c9c93ae1ea0>] = '', term: ~types.Annotated[str | None, <typer.models.OptionInfo object at 0x7c9c93ae2020>] | None = None, transfer: ~types.Annotated[str | None, <typer.models.OptionInfo object at 0x7c9c93ae13f0>] | None = None, list_hosts: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7c9c93ae3d60>] = False) None¶
Resolve a host by ID, apply option overrides, and store it in
ctx.objfor subcommands.