Skip to main content

astroctl access-policy key create

Create an API key; its value is printed once

Terminal
astroctl access-policy key create <policy> --label <name> [flags]

Examples​

Terminal
astroctl access-policy key create partner-keys --label partner-a --expires-at 2027-01-01T00:00:00Z

Options​

Terminal
--expires-at string When the key stops working (RFC 3339); omitted, it does not expire
-h, --help help for create
--label string Who the key is for, at most 63 characters

Options inherited from parent commands​

Terminal
-o, --output string Output format (table|json|yaml) (default "table")

SEE ALSO​