Ankos
CLI Reference

CLI Reference

All Ankos CLI commands, flags, and behaviors — for engineers who want to drive the CLI from a terminal or pipeline.

The Ankos CLI is a single binary (ankos) that collects PCI DSS evidence from your AWS, GCP, GitHub, Okta, Microsoft Entra ID, and Kubernetes environments using your local credentials. It runs read-only, never modifies infrastructure, and never transmits credentials to Ankos.

New here?

This page is a per-command reference. To see how the commands fit together end to end, read From scan to audit-ready.

At a glance

Evidence collection + verification

CommandWhat it does
ankos scanRun evidence collectors against your cloud account
ankos collectorsList available collectors with PCI requirement mappings
ankos verify-integrityVerify evidence integrity against the SHA-256 manifest (formerly ankos verify)

Analysis + reporting (operates on scan output)

CommandWhat it does
ankos reportPCI DSS readiness report — text, JSON, CSV, or HTML; CI-friendly exit codes
ankos driftCompare current state against a baseline; flag posture regressions
ankos remediateGenerate prioritized remediation guidance and a sprint plan
ankos docsGenerate Word policy documents pre-filled with your scan data
ankos exportBundle evidence into an audit-ready package for QSA hand-off (see ankos export --help)
ankos questionnaireAuto-fill SIG / CAIQ security questionnaires from scan evidence (see --help)

Pre-assessment + scoping

CommandWhat it does
ankos accounts discoverStart here — read-only estate sweep that flags risks and recommends which accounts are in PCI scope
ankos initGuided AWS onboarding — verify access, detect environment, create scope files (see --help)
ankos triagePre-assessment triage — determine your SAQ type (or ROC) and run gap analysis (formerly ankos assess; see --help)
ankos scopeManage .ankosscope (define what's in your CDE)
ankos ignoreManage .ankosignore (accept findings with reason + approver)
ankos accountsMulti-account AWS configuration for scans + drift
ankos explainPlain-English reference for PCI DSS requirements (see --help)

Auth + meta

CommandWhat it does
ankos auth set-keySet the API key for uploading to your Ankos ledger
ankos auth whoamiShow the currently authenticated user / org
ankos versionPrint version, commit, build date
ankos completionGenerate shell completion scripts (bash, zsh, fish, powershell)

Commands marked "see --help" don't have dedicated documentation pages yet — run ankos <command> --help for full flag references. The Long: text on every command covers the gist.

Global behaviors

These hold across every command unless noted otherwise:

  • Read-only credentials. The CLI uses your existing AWS / GCP credentials, GitHub / Okta / Entra read-only tokens, or kubeconfig context, and only calls read APIs. It never modifies your resources.
  • Credentials stay local. Your AWS access keys, GCP service-account JSON, GitHub / Okta / Entra tokens, kubeconfig, or session tokens are never transmitted to Ankos. Evidence output stays on your machine unless you explicitly --upload.
  • Per-collector isolation. A single collector failing (e.g. an insufficient IAM permission for one service) does not fail the whole scan. The other collectors run and the failure is reported in the summary.
  • Integrity by default. Every scan emits a manifest.json with a SHA-256 hash for each output file. The hash is computable independently using standard tools (shasum -a 256) — Ankos can be removed from the trust path at verification time.

Provider selection

By default the CLI runs against AWS. Pass --provider to scan a different source. The collector registry is shared but each collector advertises its provider — the --provider flag filters the ones that run. Accepted values: aws, gcp, github, okta, entra, k8s.

# AWS (default)
ankos scan

# GCP
ankos scan --provider gcp --gcp-project my-project-id

# GitHub
ankos scan --provider github --github-org my-org

# Okta / Entra (identity providers)
ankos scan --provider okta --okta-org-url https://acme.okta.com --okta-token <token>
ankos scan --provider entra --entra-tenant <id> --entra-client-id <id> --entra-client-secret <secret>

# Kubernetes
ankos scan --provider k8s

See ankos scan for each provider's flags and Collectors for the full list per provider.

Where to go next