@akropolys/cli
v1.6.1
Published
Akropolys CLI — diagnostic, workspace setup, and payload inspection utility.
Readme
@akropolys/cli
Command-line utilities for Akropolys: scaffold local config, check connectivity, and lint catalog payloads before you ingest them.
Install
npm install -g @akropolys/cli
# or run on demand
npx @akropolys/cli <command>Commands
akropolys init
Interactively writes an .env with your site credentials:
NEXT_PUBLIC_AKROPOLYS_SITE_ID=...
NEXT_PUBLIC_AKROPOLYS_API_TOKEN=...akropolys doctor
Verifies your local config and that the API is reachable. Reads NEXT_PUBLIC_AKROPOLYS_* or VITE_AKROPOLYS_* from .env / .env.local.
akropolys doctor # health check
akropolys doctor -v # also print the resolved configakropolys inspect [file]
Statically checks a catalog JSON payload for ingestion issues — missing stable identifier, sparse attributes — before you push it.
akropolys inspect catalog.json
cat catalog.json | akropolys inspect --stdin
akropolys inspect catalog.json --strict # exit 3 if any warning firesLicense
MIT
