# chainctl iam invites create

URL: https://edu.chainguard.dev/chainguard/chainctl/chainctl-docs/chainctl_iam_invites_create.md
Last Modified: April 23, 2026
Tags: chainctl, Reference, Product

 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] [--single-use] [--output=id|json|table] Examples # Create an invite that will be valid for 5 days: chainctl iam invite create my-org-name --role=viewer --ttl=5d # Create an invite that only Kim can accept: chainctl iam invite create my-org-name --email=kim@example.com # Create an invite code that can only be used once. chainctl iam invite create my-org-name --single-use Options --email string The email address that is allowed to accept this invite code. --role string Role is used to role-bind the invited to the associated location. --single-use The invite can only be used once before it is invalidated. --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 &#34;https://console-api.enforce.dev&#34;) --audience string The Chainguard token audience to request. (default &#34;https://console-api.enforce.dev&#34;) --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 &#34;https://console.chainguard.dev&#34;) --force-color Force color output even when stdout is not a TTY. -h, --help Help for chainctl --issuer string The url of the Chainguard STS endpoint. (default &#34;https://issuer.enforce.dev&#34;) --log-level string Set the log level (debug, info) (default &#34;ERROR&#34;) -o, --output string Output format. One of: [csv, env, go-template, id, json, markdown, none, table, terse, tree, wide] -v, --v int Set the log verbosity level. SEE ALSO chainctl iam invites	- Manage invite codes that register identities with Chainguard. 
