Skip to content

CLI reference — miscellaneous

Generated by bun run generate:cli-reference from spec/admin-api-openapi.json. Do not hand-edit — regenerate after refreshing the spec.

Every operation below is documented CLI-first (nayaone-admin api <operationId>) per PRD-407/DO-7. The REST /admin-api/* method+path is the fallback/alternative integration option.

40 operations in this area.

Disable an OAuth2/OIDC client

CLI (preferred):

Terminal window
nayaone-admin api adminDeleteOauthClient --param clientId=<clientId> --body '{}'

REST fallback: DELETE /admin-api/oauth-clients/{clientId}

Emit cloud.nayaone.catalog.refreshed (platform-admin only). Used by out-of-process crons (ai-models refresh) that bypass the api-worker upsert routes.

CLI (preferred):

Terminal window
nayaone-admin api adminEmitCatalogRefreshedCe --body '{}'

REST fallback: POST /admin-api/cloudevents/catalog-refreshed

PRD-350 M3 — short-lived SSH credential lease for the pyinfra runner (Bearer PROVISION_CALLBACK_SECRET or admin session). Returns private key material; time-boxed via expires_at.

CLI (preferred):

Terminal window
nayaone-admin api adminGetBoxCredentialLease --param boxId=<boxId>

REST fallback: GET /admin-api/box-credential/{boxId}

BYOA → Pulumi stack-config seeds (with plaintext secrets) for the runner. Admin-only (PRD-9 §7).

CLI (preferred):

Terminal window
nayaone-admin api adminGetCloudAccountRunnerStackConfig

REST fallback: GET /admin-api/cloud-accounts/runner-stack-config

Get cost data for all orgs (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminGetCost

REST fallback: GET /admin-api/cost

Get an entitlement with active holders and graph edges

CLI (preferred):

Terminal window
nayaone-admin api adminGetEntitlement --param id=<id>

REST fallback: GET /admin-api/entitlements/{id}

PRD-139 — pyinfra dynamic inventory (Bearer PROVISION_CALLBACK_SECRET or admin session)

CLI (preferred):

Terminal window
nayaone-admin api adminGetPyinfraInventory

REST fallback: GET /admin-api/pyinfra-inventory

PRD-350 M9 — short-lived per-runner SSH credential lease for the pyinfra runner-scope converge (Bearer PROVISION_CALLBACK_SECRET or admin session). Fetch-or-mints the per-runner key; returns private key material; time-boxed via expires_at.

CLI (preferred):

Terminal window
nayaone-admin api adminGetRunnerCredentialLease --param runnerId=<runnerId>

REST fallback: GET /admin-api/runner-credential/{runnerId}

Pre-populate values for the per-org capability install dialog (admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminListCapabilityInstallDefaults

REST fallback: GET /admin-api/capability-install-defaults

Platform-wide cost fact rows (cloud-VM + AI inference) for the AG Grid pivot at /admin/cost (Admin only).

CLI (preferred):

Terminal window
nayaone-admin api adminListCostFacts

REST fallback: GET /admin-api/cost/facts

Return the parsed cloud_resource.desired_state_json for the canonical row in the given scope (PRD-141 KD-4 / KD-5).

CLI (preferred):

Terminal window
nayaone-admin api adminListDesiredCloudResources

REST fallback: GET /admin-api/cloud-resources/desired

Visual feedback submissions from end users — proxies PostHog insight cTjIm2FI (Admin only).

CLI (preferred):

Terminal window
nayaone-admin api adminListFeedback

REST fallback: GET /admin-api/feedback/list

Platform-wide list of per-org Pulumi-installer capability installs (admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminListOrgCapabilityInstalls

REST fallback: GET /admin-api/org-capability-installs

List all plan_feature catalogue rows (platform_admin)

CLI (preferred):

Terminal window
nayaone-admin api adminListPlanFeatures

REST fallback: GET /admin-api/plan-features

Get aggregated resources for all boxes in a project (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminListProjectResources --param id=<id>

REST fallback: GET /admin-api/projects/{id}/resources

List Pulumi stacks (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminListPulumiStacks

REST fallback: GET /admin-api/pulumi-stacks

At-a-glance vCPU quota state for regions in use by the fleet

CLI (preferred):

Terminal window
nayaone-admin api adminListVcpuQuotas

REST fallback: GET /admin-api/vcpu-quotas

PRD-350 M13 — mint a short-TTL presigned GET for a PRIVATE fleet artefact (n1d/cloudflared binary or content-addressed floor script). Bearer PROVISION_CALLBACK_SECRET or admin session.

CLI (preferred):

Terminal window
nayaone-admin api adminPresignFleetArtifact

REST fallback: GET /admin-api/fleet-artifact-presign

Sanitised BYOA stack-config preview (secret values replaced with &lt;set&gt;) — debug only.

CLI (preferred):

Terminal window
nayaone-admin api adminPreviewCloudAccountStackConfig

REST fallback: GET /admin-api/cloud-accounts/preview-stack-config

Provision a machine USER (member + user-owned api-token) — platform_admin

CLI (preferred):

Terminal window
nayaone-admin api adminProvisionMachineUser --body '{}'

REST fallback: POST /admin-api/machine-users/provision

PRD-139 Phase G.1 — runner-proxy bridge consumed by the pyinfra-worker

CLI (preferred):

Terminal window
nayaone-admin api adminProxyPyinfraConvergeRunner --body '{}'

REST fallback: POST /admin-api/pyinfra-converge-via-worker/runner-proxy

PRD-350 M3 — pyinfra runner completion webhook (Bearer PROVISION_CALLBACK_SECRET). Closes the box_pyinfra_run telemetry pair with the real exit code.

CLI (preferred):

Terminal window
nayaone-admin api adminPyinfraRunnerComplete --body '{}'

REST fallback: POST /admin-api/pyinfra-runner/complete

PRD-350 M3 — dispatch a pyinfra operation to the runner fleet via workflow_dispatch pyinfra.yml. Emits the started box_pyinfra_run telemetry row.

CLI (preferred):

Terminal window
nayaone-admin api adminPyinfraRunnerExecute --body '{}'

REST fallback: POST /admin-api/pyinfra-runner/execute

Run the PRD-390 AI spend rollup now (platform_admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminRefreshAiSpendRollup --body '{}'

REST fallback: POST /admin-api/ai-spend/refresh

Run the PRD-390 api-worker telemetry rollup now (platform_admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminRefreshApiWorkerTelemetryRollup --body '{}'

REST fallback: POST /admin-api/api-worker-telemetry/refresh

Run the PRD-390 converge/oracle rollup now (platform_admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminRefreshConvergeOracleRollup --body '{}'

REST fallback: POST /admin-api/converge-oracle/refresh

Run the PRD-390 fleet-health rollup now (platform_admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminRefreshFleetHealthRollup --body '{}'

REST fallback: POST /admin-api/fleet-health/refresh

PRD-110 — manually enqueue a reconcile for a single scope (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminRepairMemberSync --body '{}'

REST fallback: POST /admin-api/member-sync/repair

PRD-139 Phase G — converge a capability via the Pyodide / CF-Workers Python pyinfra dispatcher (runner-proxy transport per G.1 spike)

CLI (preferred):

Terminal window
nayaone-admin api adminRunPyinfraConvergeViaWorker --body '{}'

REST fallback: POST /admin-api/pyinfra-converge-via-worker

Batch-resolve scope IDs (user / org / project / box / runner) into display metadata (Admin only).

CLI (preferred):

Terminal window
nayaone-admin api adminScopeLookup --body '{}'

REST fallback: POST /admin-api/scope-lookup

Send cloud-resource oracle system report to nik@nayaone.com (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminSendSystemReportEmail --body '{}'

REST fallback: POST /admin-api/system-report/email

PRD-133 — record the latest published n1-cloud-daemon version in the daemon_version_oracle table. Bearer PROVISION_CALLBACK_SECRET (release CI) or admin session.

CLI (preferred):

Terminal window
nayaone-admin api adminSetDaemonVersion --body '{}'

REST fallback: POST /admin-api/daemon-version

PRD-110 — enqueue reconcile_request events for one or every org (Admin only)

CLI (preferred):

Terminal window
nayaone-admin api adminSweepMemberSync --body '{}'

REST fallback: POST /admin-api/member-sync/sweep

PRD-350 M6 — register a Packer-baked golden image in the golden_image catalog. Bearer PROVISION_CALLBACK_SECRET (CI) or admin session.

CLI (preferred):

Terminal window
nayaone-admin api adminUpsertGoldenImage --body '{}'

REST fallback: POST /admin-api/golden-image

Upsert an OAuth2/OIDC client (admin)

CLI (preferred):

Terminal window
nayaone-admin api adminUpsertOauthClient --body '{}'

REST fallback: POST /admin-api/oauth-clients

Bind / rotate a Cloudflare Worker secret (platform-admin only). Wraps PUT /accounts/{id}/workers/scripts/{name}/secrets.

CLI (preferred):

Terminal window
nayaone-admin api adminUpsertWorkerSecret --body '{}'

REST fallback: POST /admin-api/worker-secrets

Validate (provider, region, machineType, architecture, osSlug) against the cached cloud catalog (Admin only).

CLI (preferred):

Terminal window
nayaone-admin api adminValidateArchitecture --body '{}'

REST fallback: POST /admin-api/architecture/validate

PRD-231 Phase C — Probe each pre-destroy cloud_resource_id by-id; audit + block next up on still-present rows.

CLI (preferred):

Terminal window
nayaone-admin api adminVerifyConvergePostDestroy --body '{}'

REST fallback: POST /admin-api/converge/post-destroy-verify

PRD-92 P — platform-admin full-tailnet Headscale overview

CLI (preferred):

Terminal window
nayaone-admin api getPlatformHeadscaleOverview

REST fallback: GET /admin-api/headscale/overview

PRD-373 — atomically reserve the next PRD ordinal from the D1 sequence table. Bearer PROVISION_CALLBACK_SECRET (CI) or admin session.

CLI (preferred):

Terminal window
nayaone-admin api reserveNextPrdNumber --body '{}'

REST fallback: POST /admin-api/prd-number/reserve