chainctl iam invites create

chainctl iam invites create

Generate an invite code to identities with Chainguard.

chainctl iam invites create [ORGANIZATION_NAME | ORGANIZATION_ID | FOLDER_NAME | FOLDER_ID] [--role=ROLE_ID|ROLE_NAME] [--ttl=TTL_DURATION] [--email=EMAIL] [--output json|table|id]

Examples


# Create an invite that will be valid for 5 days:
chainctl iam invite create ORGANIZATION_ID --role=ROLE_ID --ttl=5d

# Create an invite that only Kim can accept:
chainctl iam invite create ORGANIZATION_ID --role=ROLE_ID --email=kim@example.com

Options

      --email string   The email address that is allowed to accept this invite code.
  -h, --help           help for create
      --role string    Role is used to role-bind the invited to the associated location.
      --ttl duration   Duration the invite code will be valid. (default 168h0m0s)

Options inherited from parent commands

      --api string        The url of the Chainguard platform API. (default "https://console-api.enforce.dev")
      --audience string   The Chainguard token audience to request. (default "https://console-api.enforce.dev")
      --config string     A specific chainctl config file. Uses CHAINCTL_CONFIG environment variable if a file is not passed explicitly.
      --console string    The url of the Chainguard platform Console. (default "https://console.enforce.dev")
      --issuer string     The url of the Chainguard STS endpoint. (default "https://issuer.enforce.dev")
  -o, --output string     Output format. One of: ["", "json", "id", "table", "terse", "tree", "wide"]
  -v, --v int             Set the log verbosity level.

SEE ALSO

Last updated: 2024-04-04 08:56