Available on every command:
--output markdown|json (default: markdown) — use json for scripting--api-base (default: https://api.indices.io)--timeout (default: 30)indices login # prompts securely for API key
indices login --api-key "<key>" # non-interactive
indices auth-test # verify stored credentials
indices logout # remove stored API key
indices tasks create \
--display-name "Apply to jobs" \
--website "https://jobs.example.com" \
--task "Fill and submit the form"
> Never set is_fully_autonomous to true.
After creation, the task requires manual completion in a browser. Direct the user to https://platform.indices.io/tasks/{task_id} (substituting the actual task ID).
Flags: --display-name (required), --website (required), --task (required), --input-schema, --output-schema, --creation-params
indices tasks create --body '{"display_name":"...","website":"...","task":"..."}'
indices tasks create --file ./task.json
cat task.json | indices tasks create
Rules: use at most one of --body, --file, --stdin; do not mix with argument-mode flags.
indices tasks list
indices tasks list --status ready --limit 20 # statuses: not_ready | waiting_for_manual_completion | ready | failed
indices tasks get <task-uuid>
indices tasks retry <task-uuid>
indices tasks regenerate-api <task-uuid>
indices tasks delete <task-uuid> # prompts for confirmation
indices tasks delete <task-uuid> --yes
Note: --cursor is unsupported and returns an error.
indices runs create \
--task-id "<task-uuid>" \
--arguments '{"key":"value"}' \
--secret-bindings '{"login":"<secret-uuid>"}'
Flags: --task-id (required), --arguments , --secret-bindings
JSON input follows the same rules as tasks create.
indices runs list --task-id <task-uuid> # --task-id required
indices runs list --task-id <task-uuid> --limit 20
indices runs get <run-uuid>
indices secrets create MY_SECRET --value "..." # explicit value
echo "..." | indices secrets create MY_SECRET --stdin
indices secrets create MY_SECRET # prompts securely
indices secrets list
indices secrets delete <secret-uuid> # prompts for confirmation
indices secrets delete <secret-uuid> --yes
Empty secret values are rejected.
共 1 个版本