automagent push
Publish an agent definition to the Automagent Hub
Usage
$ automagent push [path] [options]
The [path] argument defaults to ./agent.yaml.
Options
| Flag | Description | Default |
|---|---|---|
--hub-url <url> | Hub URL | http://localhost:3000 |
--scope <scope> | Agent scope (e.g. @acme) | @local |
How it works
- Reads and parses the local
agent.yaml - Validates the definition against the JSON Schema
- Sends a
PUTrequest to the Hub API with the agent name, version, definition, and tags - If you are logged in (via
automagent login), authentication headers are included automatically
If you are not logged in, the CLI prints a warning but still attempts the push. The Hub may reject unauthenticated requests depending on its configuration.
Examples
Push to the default local hub:
$ automagent push
Push with a team scope:
$ automagent push --scope @myteam
Push a file from a different path:
$ automagent push ./agents/support.yaml --scope @acme
Push to a remote hub:
$ automagent push --hub-url https://hub.automagent.dev --scope @acme
See also
- automagent pull — Download agents from the Hub
- automagent login — Authenticate before pushing
- automagent diff — Compare local changes before pushing