NSCALE_SERVICE_TOKEN environment variable.
Aliases: serviceaccounts, sa
Subcommands
- list — List service accounts
- get — Get service account details
- create — Create a new service account
- update — Update an existing service account
- rotate — Rotate a service account token
- delete — Delete a service account
list
List service accounts in an organization.Flags
| Flag | Description |
|---|---|
--org string | Organization ID |
--json | Output in JSON format |
get
Get details for a specific service account in JSON format.Flags
| Flag | Description |
|---|---|
--id string | Service account ID |
--org string | Organization ID |
create
Create a new service account. Supports interactive mode or JSON input.Flags
| Flag | Description |
|---|---|
--org string | Organization ID |
-f, --file string | Path to a JSON file |
--stdin | Read JSON from standard input |
--dry-run | Preview the request payload without persisting |
-y, --yes | Automatically confirm creation |
Examples
update
Update an existing service account.Flags
| Flag | Description |
|---|---|
--id string | Service account ID |
--org string | Organization ID |
-f, --file string | Path to a JSON file |
--stdin | Read JSON from standard input |
--dry-run | Preview the request payload without persisting |
-y, --yes | Automatically confirm update |
Examples
rotate
Rotate the access token for a service account. The old token is invalidated and a new one is returned.Flags
| Flag | Description |
|---|---|
--id string | Service account ID |
--org string | Organization ID |
--dry-run | Preview the request payload without persisting |
-y, --yes | Automatically confirm token rotation |
Example
delete
Delete an existing service account.Flags
| Flag | Description |
|---|---|
--id string | Service account ID |
--org string | Organization ID |
--dry-run | Preview the request payload without persisting |
-y, --yes | Automatically confirm deletion |