# Web login (recommended for agent usage)
anygen auth login --no-wait
# Direct API key (no browser needed)
anygen auth login --api-key sk-xxx
# Environment variable
export ANYGEN_API_KEY=sk-xxx
anygen <resource> <method> [flags]
| Flag | Description |
|---|---|
| ------ | ------------- |
--params ' | URL/path parameters |
--data ' | Request body |
--dry-run | Show the request without sending it |
--wait | Re-poll until terminal state |
--timeout | Polling timeout in milliseconds |
# Browse all resources and methods
anygen --help
anygen task --help
# Inspect a method's required params, types, and defaults
anygen schema task.create
anygen schema task.message.send
Use anygen schema output to build your --params and --data flags.
text.共 1 个版本