Getting started
Platform-admin operators drive /admin-api/* through the nayaone-admin
CLI. The REST surface remains available as a fallback/alternative integration
option (PRD-407/DO-7).
Install from SYSTEM Forge
Section titled “Install from SYSTEM Forge”Binaries are Forge-only (PRD-383 WS-C). GitHub Releases carry OpenAPI spec assets, not the CLI binary.
# Auth: HTTP Basic with username `x-api-token` and password = your NayaOne API token.# Download to the CWD, then move into place with sudo (never curl as root).curl -fsSL -u "x-api-token:${N1_API_TOKEN}" -o nayaone-admin \ "https://nayaone.cloud/api/forge-registry/_system/n1-admin/generic/nayaone-admin/latest/nayaone-admin-$(uname | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')"chmod +x nayaone-adminsudo mv nayaone-admin /usr/local/bin/nayaone-adminnayaone-admin versionSource: n1-cloud-admin-cli/README.md.
Auth — shared ~/.n1/config.json
Section titled “Auth — shared ~/.n1/config.json”nayaone-admin and nayaone share the same config profile file
(~/.n1/config.json, mode 0600). There is no second mint surface.
| Mode | When to use | How |
|---|---|---|
| OAuth 2.1 + PKCE | Interactive operator sessions | nayaone login (or nayaone-admin login — idempotent against the shared profile) |
x-api-token | CI / service accounts | nayaone-admin profile set <name> --api-token <value> |
# Confirm identity (OAuth bearer → OIDC userinfo; X-Api-Token → GET /api/me)nayaone-admin whoami
# Smoke an admin-api operationnayaone-admin api adminListOrganizationsIf you already ran nayaone login, skip re-login — nayaone-admin whoami
returns the same subject. JWT issuer convergence is pinned by admin-api’s
request-host-derived baseURLForJwt
(PRD-316/DO-12).
Audience gate
Section titled “Audience gate”You must be a member of the Cloudflare Access group
n1-cloud-platform-admins (same group that gates
nayaone.cloud/admin/* — PRD-398).
Every /admin-api route also enforces requirePlatformAdmin server-side.
Next steps
Section titled “Next steps”- Browse the generated CLI reference (~210
operationIds). - Read the operator guides for converge, credential health, member-sync, and fleet reroll.