ds team
On this page
Defined in cli/commands/team.ts. Grants or removes a developer's access: push access to devstride/devstride and devstride/ds-docs, and an AWS IAM Identity Center sign-in in the group devstride-developers, which holds AWSAdministratorAccess on the dev account only. It uses your own gh (an admin of the devstride organisation) and a profile that reaches the management account (DEVSTRIDE_MGMT_PROFILE, else devstride-mgmt). An agent session may only run it with --dry-run. For admins walks through both.
ds team add-developer#
ds team add-developer --email <work email> --github <login> --name "<Given Family>" [--any-domain] [--mgmt-profile <profile>] [--dry-run]
Invites the GitHub login to both repositories with push access, creates the AWS sign-in (its user name is the email), adds it to devstride-developers, and the first time creates that group and its dev-account assignment. Prints already: for what is in place and changes only what is missing. Refuses to add anyone to the group if it has been given more than administrator access on the dev account. Ends with the admin's one console step (sending the password email, unless Identity Center sends one itself) and the steps to send the developer.
| Flag | Description |
|---|---|
--email <email> |
Their work email, which becomes their AWS sign-in. Must end devstride.com or creativecapsule.com |
--github <login> |
Their GitHub login |
--name "<Given Family>" |
Their given and family name |
--any-domain |
Allow an email outside those two domains |
--mgmt-profile <profile> |
Your management-account profile |
--dry-run |
Check everything and print the plan; change nothing |
ds team remove-developer#
ds team remove-developer --email <work email> [--github <login>] [--mgmt-profile <profile>] [--dry-run]
Takes back everything add-developer granted, after you retype their email: an organisation member (an admin is an owner) is removed from the devstride organisation, which takes every repository with it; anyone else loses their push access to both repositories and any pending invitation. Their sign-in comes out of devstride-developers and devstride-admins and is deleted, and their DevStride workspace membership or invitation is removed with the agent key. Without --github, GitHub access is left alone. Refuses a sign-in with access beyond the two groups, and the admin running it. Its notes name what is left: each of their machines' stages (ds stage remove --machine <name>) and, for an agent machine, ds machine revoke.