JSON output (AI mode)
Every gy command supports the global --json flag, which emits structured output that scripts
and AI agents can parse reliably — no screen-scraping required.
gy deploy --jsongy list apps --jsongy whoami --jsongy info my-app --jsonExample outputs
Section titled “Example outputs”// gy deploy --json{ "status": "deployed", "app": "my-app", "project": "default", "url": "https://my-app-7f3a9c.hosted.ghaymah.systems" }// gy list apps --json[ { "name": "my-app", "id": "…", "type": "app", "status": "synced", "url": "https://…" } ]// gy whoami --json{ "status": "authenticated", "email": "dev@example.com", "userId": "…" }Scripting with jq
Section titled “Scripting with jq”# Extract the live URL after a deployURL=$(gy deploy --json | jq -r '.url')echo "Deployed to $URL"
# Filter apps by statusgy list apps --json | jq '.[] | select(.status == "synced")'Reading from stdin
Section titled “Reading from stdin”Some commands accept input via --file - for pipelining:
echo '{"app":"my-app"}' | gy <command> --file -