import

command
v1.0.0-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 8 Imported by: 0

README

import

Loads an exported agent artifact JSON file (produced by examples/export) back into an in-memory OCI store. With a registry reference, pushes the artifact to the target repository using Docker credentials.

Usage

# Import into memory (print digest only)
go run ./examples/import/ <input.json>

# Import and push to a registry
go run ./examples/import/ <input.json> <registry-ref>

# Push to a plain HTTP registry
go run ./examples/import/ -plain-http <input.json> <registry-ref>

Examples

# Roundtrip: export then import
go run ./examples/export/ demo/meteo/Agentfile meteo.json
go run ./examples/import/ meteo.json

# Import and push to a remote registry
go run ./examples/import/ meteo.json ghcr.io/openotters/agents/meteo:1.0.0

Documentation

Overview

Import loads an exported agent artifact JSON file. Without a registry reference, loads into memory and prints the digest. With a registry reference, pushes the artifact to the target repository.

Usage:

go run ./examples/import/ <input.json>
go run ./examples/import/ <input.json> <registry-ref>
go run ./examples/import/ -plain-http <input.json> <registry-ref>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL