Skip to content

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=True,
    flag_value=AGENT,
)
@click.option(
    "--service",
    "package_type",
    help="Specify the package type as service.",
    flag_value=SERVICE,
)
@click.argument("public-id", type=PublicIdParameter(), required=True)
@click.pass_context
def fetch(click_context: click.Context, public_id: PublicId, alias: str, package_type: str, registry: str) -> None

Fetch an agent from the registry.

fetch_service

def fetch_service(ctx: Context, public_id: PublicId) -> Path

Fetch service.

fetch_service_ipfs

def fetch_service_ipfs(public_id: PublicId) -> Path

Fetch service from IPFS node.

fetch_service_local

def fetch_service_local(ctx: Context, public_id: PublicId) -> Path

Fetch service from local directory.

Back to top