FlexGalaxy CLI

fgai is the command-line interface for the FlexGalaxy.AI platform. One tool spans every product — DotID identity, TrustMint devices, and more — using the same public capability APIs at api.flexgalaxy.ai that the SDKs use. This guide is for people using the installed fgai command.

Quickstart

Public discovery needs no credential, so it is the fastest proof the tool and the network path both work:

fgai version
fgai marketplace list --json

Then configure a credential and read something that belongs to your Account:

fgai configure --profile prod --account-id "$ACCOUNT_ID" \
  --access-key-id "$ACCESS_KEY_ID" --secret-access-key "$SECRET_ACCESS_KEY"
fgai auth status
fgai org directory --json

Commands use the prod profile unless you pass --profile; see Profiles.

How commands are organized

Every command targets a public capability of a product, never an internal or browser-only route. The command groups mirror the same capability surface you see in the API reference: DotID exposes accounts, organizations, identity, quota, and audit; TrustMint exposes device provisioning, registry, telemetry, twins, rules, pipelines and more; Bazaar exposes the application marketplace, entitlements, commerce, publishing and OTA rollouts. One installed fgai binary carries every product’s commands — run fgai --help to see the full list, and fgai <group> --help for a group’s verbs. More products join fgai as their public APIs ship.