bird members create
Usage
Code example
bird members create [flags]Description
Add org member to workspace
Add an existing organization member to this workspace by user id, with a workspace role. Organization membership is the precondition: a user who does not have it yet reaches a workspace only through an invitation.
Build the request from flags, a JSON MemberAdd body via --body-file ("-" reads
stdin), or both — a flag overrides the matching body field. Run --example to
print a ready-to-edit body, or --dry-run to print the resolved request without
sending it.
Examples
Code example
# print the body shape (no credentials needed)
bird members create --example
# the body it prints:Code example
{
"role": "admin",
"user_id": "usr_01krdgeqcxet5s7t44vh8rt9mg"
}Options
Request
| Name | Description |
|---|---|
| --body-file | Read the JSON request body from this file; "-" reads stdin |
| --example | Print a complete example request body, then exit |
| --dry-run | Print the resolved request without sending it, then exit |
| --idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
| --user-id | ID of an existing organization member to add to this workspace. |
| --role | Workspace role to assign. Possible values: admin, developer, analyst. |
| --response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
| bird members delete | Remove a member from the workspace |
| bird members list | List workspace members |
| bird members update | Update a member's workspace role |