CLI

The unpublished segment CLI wraps @segmentationapi/sdk for terminal and script use. Every command also exists in the API reference.

1segment jobs submit photo.png --prompts person --json
2segment jobs get --job-id job-abc-987

--json is pipe-safe, --quiet prints IDs only, otherwise commands print human tables. See Authentication for credentials: segment auth login signs in with Google, or persist a secret with segment keys set.

1segment jobs list --all --quiet # one job ID per line
2segment jobs result --job-id job-abc-987 # manifest + asset URLs
3segment billing checkout --json # { url }

There is no jobs wait — poll jobs get until success. Holding an unrestricted secret on disk is account-takeover-equivalent; prefer short-lived sessions where you can.