Loading...
Loading...
Use when an agent needs to drive the full agent-manager lifecycle through `amctl` — install the CLI, log in, create/deploy an agent, list projects and agents, watch build progress, fetch build/runtime logs and metrics, and pull traces.
npx skill4agent add wso2/agent-skills manage-agentamctlamctl <verb> --help--help--helpreferences/troubleshooting.mdamctlreferences/triage.mdcommand -v amctl"isn't installed. Would you like me to install it for you, or would you prefer to do it yourself?"amctl
bash <absolute-path-to-skill>/scripts/install-amctl.shPATHamctl login --url <instance-url>amctl loginamctl project list --jsonamctl context showcontext showerror.code: NO_ORG--jsonerror.codeerror.messageerror.additionalData.detailsdatainstanceorgprojectenvironmentagentagent build logsamctl <verb> --helpcreateupdate--project <name>amctl context linkamctl context showlogsmetricstracestracetraces export--env <name>--env defaultbuildNamehotel-booking-agent-1778760196718buildId--agentamctl agent getstatusagent logsagent metricsreferences/triage.mderror.additionalData.details--helpamctl <verb> --help| Verb | Use to | Notes |
|---|---|---|
| Inspect current instance / org / linked project. | Auth-blind: shows URL even when unauthed. Not a login check. |
| Bind a directory to a project / agent. | See iron rule 3. |
| Discover projects, confirm auth works. | |
| Manage projects. | |
| Discover agents, read agent config. | |
| Create + auto-build + auto-deploy in one call. | Required flags vary by |
| Re-deploy a built image, optionally with new env. | |
| Remove an agent. | Async — |
| Enumerate builds, newest first. | Entries carry both |
| Status / percent / step list for one build. | |
| Trigger a fresh build without recreating the agent. | Optional commit pin. |
| Raw text build log (image pull, buildpack, workload CR apply). | NOT JSON. May be empty for 10–30s after a fresh build — retry. |
| Runtime pod logs. | Requires |
| CPU / memory time-series for the running pod. | Requires |
| List OTel traces from the agent's spans. | Requires |
| Span detail for a single | Add |
| Bulk dump full span data for every trace in a window. | |
amctl <verb> --helpI'll create the agent and confirm it's actually serving traffic.
Here's what I'll do:
✦ Confirm amctl is installed and you're logged in
✦ Run `amctl agent create --help` to lock onto the current flag set
✦ Create the agent (auto-builds + auto-deploys to `default`)
✦ Poll the build until Completed or Failed
✦ Confirm liveness via logs / metrics
✦ Pull a recent trace once there's trafficamctl agent create --help--subtype--build-type--provisioningamctl agent create <name> --project <p> ... --jsondefaultamctl agent build list <agent> --project <p> --jsondata.builds[0].buildNameamctl agent build get <agent> <buildName> --project <p> --jsondata.statusCompletedFailedstatus$status$?agent getamctl agent logs <agent> --project <p> --env default --since 5m --jsonamctl agent metrics ...memoryUsagereferences/triage.mdamctl agent traces <agent> --project <p> --env default --since 1h --jsonamctl agent trace <agent> <traceId> ...references/troubleshooting.md