service-accounts
nexus service-accounts list
nexus service-accounts listnexus service-accounts create
nexus service-accounts create --name <name> --team <slug> [--owner <user-id>] --expires <YYYY-MM-DD|30d> [--dry-run]| Option | Meaning |
|---|---|
--name <name> | The service account's name (1 to 64 characters) |
--team <slug> | The team that owns it, by slug or id: its keys stop when the team is deleted |
--owner <user-id> | The member who answers for it, by user id (default: you): its keys stop when they leave the organization |
--expires <YYYY-MM-DD|30d> | When it stops working: a day (YYYY-MM-DD, UTC, the whole day) or a duration (30d, 12h or a number of days); at most 365 days from now |
--dry-run | Show what would change, change nothing |
nexus service-accounts create --name ci --team web --expires 90d --dry-run
nexus service-accounts create --name ci --team web --expires 2027-01-31nexus service-accounts revoke
nexus service-accounts revoke <id> [--dry-run]| Option | Meaning |
|---|---|
--dry-run | Show what would change, change nothing |
nexus service-accounts revoke sva_… --dry-runnexus service-accounts keys create
nexus service-accounts keys create <account id> --label <label> [--expires <YYYY-MM-DD|30d>]| Option | Meaning |
|---|---|
--label <label> | A name for the key (1 to 80 characters), to tell keys apart |
--expires <YYYY-MM-DD|30d> | When the key stops working: a day or a duration, as for the account, and not past the account's own (default: 90 days from now) |
nexus service-accounts keys create sva_… --label github-actionsnexus service-accounts keys rotate
nexus service-accounts keys rotate <account id> <key id> [--label <label>] [--expires <YYYY-MM-DD|30d>]| Option | Meaning |
|---|---|
--label <label> | A name for the new key (1 to 80 characters); the old key's name by default |
--expires <YYYY-MM-DD|30d> | When the new key stops working: a day or a duration, as for the account, and not past the account's own (default: as long as the old key lived) |
nexus service-accounts keys rotate sva_… sak_…nexus service-accounts keys revoke
nexus service-accounts keys revoke <account id> <key id>