Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Atlas Cloud CLI — Examples

Four layered, copy-pasteable API caller workflows. Each is self-contained and uses documented atlas commands (auth, models, generate, chat).

Script Layer What it shows
01-minimal.sh Discovery-first call Check auth, list model catalog entries, inspect a schema, then make one chat call.
02-product-shot.sh Cost-aware generation Estimate an image request, then start an async product hero image job.
03-pipeline.sh Scripted pipeline Idea → LLM prompts → cost checks → async image and video jobs.
04-ci-json.sh CI JSON job Authenticate from ATLASCLOUD_API_KEY, isolate credentials, validate a model, then emit JSON.

Prerequisites

  1. Install the CLI — see the root README.

  2. Install jq if you want to run the JSON automation examples unchanged.

  3. Authenticate once:

    atlas auth login                              # interactive
    atlas auth login --token "$ATLASCLOUD_API_KEY"   # CI / non-interactive

    Get a free key at the Atlas Cloud console.

Run

chmod +x examples/*.sh
./examples/01-minimal.sh

For CI:

ATLASCLOUD_API_KEY=... ./examples/04-ci-json.sh