autonomy.cli.fetch
Implementation of the 'autonomy fetch' subcommand.
fetch
@click.command(name="fetch")
@registry_flag()
@click.option(
"--alias",
type=str,
required=False,
help="Provide a local alias for the agent.",
)
@click.option(
"--agent",
"package_type",
help="Specify the package type as agent (default).",
default=True,
flag_value=AGENT,
)
@click.option(
"--service",
"package_type",
help="Specify the package type as service.",
flag_value=SERVICE,
)
@click.argument("public-id", type=PublicIdOrHashOrTokenId(), required=True)
@chain_selection_flag(
help_string_format="Use {} chain to resolve the token id.")
@click.pass_context
def fetch(click_context: click.Context, public_id: Union[PublicId,
int], alias: str,
package_type: str, registry: str, chain_type: str) -> None
Fetch an agent from the registry.