Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.
ravion api-key
Create a service-account API key in the dashboard: Settings > Service accounts > select the account > Create API key. Use it as RAVION_API_KEY for automation, not a personal membership key.Aliases:api-keys
ravion api-key create
Create an API key for a membership or service account
ravion api-key create [flags]
Flags:
Flag
Required
Description
--name <string>
yes
User-facing label for the API key.
--owner-id <string>
yes
ID of the membership or service account this API key authenticates as.
--owner-type <string>
yes
Type of principal this API key authenticates as. Available values: MEMBERSHIP, SERVICE_ACCOUNT.
--description <string>
Optional context for where or why this API key is used.
--expires-at <string>
Optional expiration timestamp. Null or omitted means the key does not expire.
--json
emit response as JSON
--permissions <type:action>
The most the key may do, as type:action pairs from the authorization catalog, for example project:read or pipelineRun:create. The key may do something only when its owner may too, so it can narrow its owner’s permissions but never widen them. Null means everything its owner may do. Omitting this field on create uses the owner’s permissions; omitting it on update preserves the current limit. Limits apply only in organizations with authorization enforcement enabled. Limited keys cannot access the Terraform Cloud API or personal-account operations, and cannot select another organization. Only a member signed in to the dashboard or the CLI can change it, never an API key.
--token-only
Print only the new API key token
ravion api-key delete
Delete ApiKey
ravion api-key delete <id> [flags]
Flags:
Flag
Required
Description
-y, --yes
skip confirmation prompt
ravion api-key get
Get ApiKey by id
ravion api-key get <id> [flags]
Flags:
Flag
Required
Description
--json
emit response as JSON
ravion api-key list
List ApiKeys
ravion api-key list [flags]
Flags:
Flag
Required
Description
--cursor <string>
cursor
--json
emit response as JSON
--limit <int>
limit
--owner-id <string>
Optional owner id filter. Must be provided with ownerType.
--owner-type <string>
Optional owner type filter. Must be provided with ownerId. Available values: MEMBERSHIP, SERVICE_ACCOUNT.
-v, --verbose
show full output
ravion api-key permissions
List the permissions a key can have
ravion api-key permissions [flags]
Flags:
Flag
Required
Description
--owner-id <string>
yes
ID of the membership or service account the key authenticates as.
--owner-type <string>
yes
Type of principal the key authenticates as. Available values: MEMBERSHIP, SERVICE_ACCOUNT.
--json
emit response as JSON
-v, --verbose
include display labels
ravion api-key update
Update an API key, including setting or clearing its permission limit
ravion api-key update <id> [flags]
Flags:
Flag
Required
Description
--clear-permissions
Remove the key’s limit and inherit all of its owner’s permissions
--description <string>
Optional context for where or why this API key is used.
--json
emit response as JSON
--name <string>
User-facing label for the API key.
--permissions <type:action>
The most the key may do, as type:action pairs from the authorization catalog, for example project:read or pipelineRun:create. The key may do something only when its owner may too, so it can narrow its owner’s permissions but never widen them. Null means everything its owner may do. Omitting this field on create uses the owner’s permissions; omitting it on update preserves the current limit. Limits apply only in organizations with authorization enforcement enabled. Limited keys cannot access the Terraform Cloud API or personal-account operations, and cannot select another organization. Only a member signed in to the dashboard or the CLI can change it, never an API key.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ravion Docs","description":"Fast, powerful building blocks for CI/CD pipelines, deploys, and Terraform automation. An open module system and one canvas connect them for your team and agents, in your own cloud.","colors":{"primary":"#FE6104","light":"#FE6104","dark":"#F6DDCE"},"logo":{"light":"https://mintcdn.com/ravion-b90c0359/flJhuOPF2oqAa_dG/logo/light.svg?fit=max\u0026auto=format\u0026n=flJhuOPF2oqAa_dG\u0026q=85\u0026s=1f2e6cab050d18d564cdeb5f723e684d","dark":"https://mintcdn.com/ravion-b90c0359/flJhuOPF2oqAa_dG/logo/dark.svg?fit=max\u0026auto=format\u0026n=flJhuOPF2oqAa_dG\u0026q=85\u0026s=c9ebae6d3a290cf6ee644bb63dcf4b3e","href":"https://www.ravion.com"},"favicon":"https://mintcdn.com/ravion-b90c0359/zFu0q6w3B8mEcsTw/favicon.png?fit=max\u0026auto=format\u0026n=zFu0q6w3B8mEcsTw\u0026q=85\u0026s=b7e9559b318054140788c5c4f83a5739","background":{"color":{"dark":"#0F0004"}},"navbar":{"links":[{"href":"https://app.ravion.com/signup","label":"Start free trial"},{"href":"https://cal.com/team/ravion/demo","label":"Book a demo"},{"href":"https://discord.gg/hJyRfg4nNa","label":"Discord","type":"discord"}]},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/ravionhq","x":"https://x.com/ravion"}},"fonts":{"heading":{"family":"PP Fragment","weight":400,"source":"https://www.ravion.com/docs/fonts/PPFragment-GlareRegular.woff2","format":"woff2"},"body":{"family":"PP Neue Montreal","weight":450,"source":"https://www.ravion.com/docs/fonts/PPNeueMontreal-Variable.woff2","format":"woff2"}},"integrations":{"fathom":{"siteId":"GMFTPQUB"},"ga4":{"measurementId":"G-9F3ZH30W5Y"},"posthog":{"apiKey":"phc_knvqBBWDUykLHBQFmz9spqtcuvWnkupHeVcxqFF2K977","apiHost":"https://api.ravion.com/i"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ravion-b90c0359","hasAudioNarration":false,"actualSubdomain":"ravion-b90c0359","customDomains":["www.ravion.com"],"gitSource":{"type":"github","owner":"ravionhq","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false,"issues":false,"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"}},"buildId":"6b077108980d5bf65fb8567d","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API reference","count":617},{"language":"default","tag":"Documentation","count":139},{"language":"default","tag":"Modules","count":61},{"language":"default","tag":"Standard library","count":53},{"language":"default","tag":"CLI","count":46},{"language":"default","tag":"Command reference","count":42},{"language":"default","tag":"Deploy to AWS","count":28},{"language":"default","tag":"Frameworks","count":28},{"language":"default","tag":"Pipelines","count":24},{"language":"default","tag":"GitHub Actions","count":23}],"searchSettings":{"maxResults":15}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@ravion.com"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"/* latin-ext */\n@font-face {\n font-family: 'DM Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/dmmono/v16/aFTW7PB1QTsUX8KYth-gCKSIUKw.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/dmmono/v16/aFTW7PB1QTsUX8KYth-gBqSI.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'DM Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/dmmono/v16/aFTU7PB1QTsUX8KYthSQBLyM.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'DM Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/docs/_mintlify/assets/fonts/google/s/dmmono/v16/aFTU7PB1QTsUX8KYthqQBA.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n@font-face{font-family:\"PP Neue Montreal\";src:url(\"/docs/fonts/PPNeueMontreal-Variable.woff2\") format(\"woff2\");font-weight:100 900;font-style:normal;font-display:swap}:root{--font-mono:\n \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\n \"Courier New\", monospace;--radius-interactive-element: 0.125rem;--radius-sm: 0.125rem;--radius-text-highlight: 0.125rem;--radius-md: 0.125rem;--radius-menus: 0.125rem;--radius-lg: 0.125rem;--radius-xl: 0.125rem;--radius-full: 9999px;--rounded-sm: 0.125rem;--rounded: 0.125rem;--rounded-md: 0.125rem;--rounded-lg: 0.125rem;--rounded-xl: 0.125rem;--rounded-2xl: 0.125rem;--rounded-3xl: 0.125rem;--border-radius: 0.125rem;font-size:17px}:where([class*=\"rounded\"]:not(.rounded-none):not(.rounded-full):not([class*=\"rounded-full\"])){border-radius:0.125rem!important}.rounded-full,[class*=\"rounded-full\"]{border-radius:var(--radius-full)!important}[data-radix-menu-content],[data-radix-dropdown-menu-content],[role=\"menu\"][data-side],[data-component-part=\"search-modal\"],[data-component-part=\"search-header\"],[data-component-part=\"search-list\"]{border-radius:0.125rem!important}:is(.dark,[data-theme=\"dark\"]) [data-component-part=\"search-modal\"]{box-shadow:0 0 0 100vmax rgb(0 0 0 / 60%),\n 0 25px 50px -12px rgb(0 0 0 / 70%)!important}@media (prefers-color-scheme: dark){[data-component-part=\"search-modal\"]{box-shadow:0 0 0 100vmax rgb(0 0 0 / 60%),\n 0 25px 50px -12px rgb(0 0 0 / 70%)!important}}code,pre,kbd,samp,[class*=\"language-\"],[data-component-part=\"code-block\"],[data-component-part=\"code-block\"] *{font-family:var(--font-mono)!important;font-weight:400!important}html{letter-spacing:0.02em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body,p,li{letter-spacing:0.02em}strong,b,.font-semibold{font-weight:600!important}a{font-weight:inherit!important}h1,h2,h3,h4,h5,h6{letter-spacing:0!important;font-weight:400!important}h1,h4,h5,h6{line-height:1.2!important}h2,h3{line-height:1.5!important}h3+h4{margin-top:1.25rem!important}h1.font-semibold,h2.font-semibold,h3.font-semibold,h4.font-semibold,h5.font-semibold,h6.font-semibold{font-weight:400!important}html[data-current-path=\"/changelog\"] #page-title{font-size:0!important}html[data-current-path=\"/changelog\"] #page-title::before{content:\"Product updates\";font-size:1.875rem}html[data-current-path=\"/changelog\"] #content-area>*{max-width:41.4rem}@media (min-width: 640px){html[data-current-path=\"/changelog\"] #page-title::before{font-size:2.25rem}}@media (min-width: 1536px){html[data-current-path=\"/changelog\"] #content-area>*{max-width:48.3rem}}.sidebar-group-header h3,h3.sidebar-title{font-weight:600!important}#navigation-items{line-height:1.25rem}#navigation-items .sidebar-group>*+*{margin-top:0!important}[data-component-part=\"card-title\"]{font-size:1.2rem!important}[data-component-part=\"card-content\"]{margin-top:0.5rem!important}code,pre,kbd,samp,[class*=\"language-\"],[data-component-part=\"code-block\"],[data-component-part=\"code-block\"] *{letter-spacing:normal}.max-w-8xl,[class*=\"max-w-8xl\"]{max-width:100%!important}#content-area>*{width:100%;max-width:36rem;margin-left:auto;margin-right:auto}@media (min-width: 1536px){#content-area>*{max-width:42rem}}[data-component-part=\"code-block-root\"],.code-block{--primary-light: 139 92 246}:is(.dark,[data-theme=\"dark\"]) [data-component-part=\"code-block-root\"],:is(.dark,[data-theme=\"dark\"]) .code-block{--primary-light: 167 139 250}a[href=\"https://www.mintlify.com/?utm_campaign=poweredBy\u0026utm_medium=referral\u0026utm_source=ravion-b90c0359\"],a[href*=\"mintlify.com\"][href*=\"poweredBy\"],a[href*=\"mintlify.com\"][href*=\"powered-by\"],a[aria-label*=\"Mintlify\"],a[title*=\"Mintlify\"]{display:none!important}html:not([data-ravion-auth-state]) :is(.navbar-link,navbar-link):has(a[href=\"https://app.ravion.com/signup\"],a[href=\"https://cal.com/team/ravion/demo\"]){visibility:hidden}:root{--rvn-base: #0f0004;--rvn-anchor-neutral: #fdddc9;--rvn-anchor-orange: #fe6104;--rvn-anchor-purple: #b287ff;--rvn-anchor-green: #88d18a;--rvn-anchor-red: #ff4d61}html.dark{--gray-50: 253 221 201;--gray-100: 253 221 201;--gray-200: 253 221 201;--gray-300: 224 194 177;--gray-400: 196 168 154;--gray-500: 136 113 104;--gray-600: 113 91 85;--gray-700: 86 66 63;--gray-800: 51 33 34;--gray-900: 39 22 24;--gray-950: 27 11 14;--color-white: var(--rvn-anchor-neutral)}html.dark [data-component-part=\"code-block-root\"],html.dark .dark\\:bg-codeblock{background-color:color-mix(in srgb, var(--rvn-anchor-neutral) 5%, var(--rvn-base))!important}html.dark [data-callout-type]{--rvn-callout: var(--rvn-anchor-purple);background-color:color-mix(in srgb, var(--rvn-callout) 5%, var(--rvn-base))!important;border-color:color-mix(in srgb, var(--rvn-callout) 30%, var(--rvn-base))!important}html.dark [data-callout-type=\"warning\"]{--rvn-callout: var(--rvn-anchor-orange)}html.dark :is([data-callout-type=\"tip\"],[data-callout-type=\"check\"]){--rvn-callout: var(--rvn-anchor-green)}html.dark :is([data-callout-type=\"danger\"],[data-callout-type=\"error\"]){--rvn-callout: var(--rvn-anchor-red)}html.dark [data-callout-type]>*,html.dark [data-callout-type] svg{color:var(--rvn-callout)!important}html.dark svg[id^=\"mermaid\"] :is(.node rect,.node polygon,.node circle,.node path){fill:color-mix(in srgb, var(--rvn-anchor-neutral) 10%, var(--rvn-base))!important;stroke:color-mix(in srgb, var(--rvn-anchor-neutral) 30%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] .cluster rect{fill:color-mix(in srgb, var(--rvn-anchor-neutral) 5%, var(--rvn-base))!important;stroke:color-mix(in srgb, var(--rvn-anchor-neutral) 15%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] :is(.cluster text,.cluster-label,.cluster-label *){fill:var(--rvn-anchor-neutral)!important;color:var(--rvn-anchor-neutral)!important}html.dark svg[id^=\"mermaid\"] :is(.flowchart-link,.edgePath path,.transition):not([style*=\"stroke\"]){stroke:color-mix(in srgb, var(--rvn-anchor-neutral) 51%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] :is(.flowchart-link,.edgePath path)[style*=\"CBD5E1\"i]{stroke:color-mix(in srgb, var(--rvn-anchor-neutral) 20%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] :is(.arrowMarkerPath,marker path){fill:color-mix(in srgb, var(--rvn-anchor-neutral) 51%, var(--rvn-base))!important;stroke:color-mix(in srgb, var(--rvn-anchor-neutral) 51%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] :is(.edgeLabel,.edgeLabel p,.edgeLabel span,.labelBkg){background-color:var(--rvn-base)!important;color:color-mix(in srgb, var(--rvn-anchor-neutral) 76%, var(--rvn-base))!important}html.dark svg[id^=\"mermaid\"] .edgeLabel rect{fill:var(--rvn-base)!important;opacity:1!important}"}]}
{"page":{"pagePath":"cli/reference/api-key","slug":"/cli/reference/api-key","pageMetadata":{"title":"ravion api-key","sidebarTitle":"api-key","description":"Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.","og:image":"https://www.ravion.com/og/docs/cli/reference/api-key.png","twitter:image":"https://www.ravion.com/og/docs/cli/reference/api-key.png","href":"/cli/reference/api-key"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`ravion-api-key`,children:_jsx(_components.code,{children:`ravion api-key`})}),`\n`,_jsx(_components.p,{children:`Create a service-account API key in the dashboard: Settings > Service accounts > select the account > Create API key. Use it as RAVION_API_KEY for automation, not a personal membership key.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Aliases:`}),` `,_jsx(_components.code,{children:`api-keys`})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-create`,children:_jsx(_components.code,{children:`ravion api-key create`})}),`\n`,_jsx(_components.p,{children:`Create an API key for a membership or service account`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--name \u003cstring>`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`User-facing label for the API key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-id \u003cstring>`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`ID of the membership or service account this API key authenticates as.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-type \u003cstring>`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`Type of principal this API key authenticates as. Available values: MEMBERSHIP, SERVICE_ACCOUNT.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--description \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional context for where or why this API key is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--expires-at \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional expiration timestamp. Null or omitted means the key does not expire.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`emit response as JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--permissions \u003ctype:action>`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The most the key may do, as type:action pairs from the authorization catalog, for example `,_jsx(_components.code,{children:`project:read`}),` or `,_jsx(_components.code,{children:`pipelineRun:create`}),`. The key may do something only when its owner may too, so it can narrow its owner’s permissions but never widen them. Null means everything its owner may do. Omitting this field on create uses the owner’s permissions; omitting it on update preserves the current limit. Limits apply only in organizations with authorization enforcement enabled. Limited keys cannot access the Terraform Cloud API or personal-account operations, and cannot select another organization. Only a member signed in to the dashboard or the CLI can change it, never an API key.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--token-only`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Print only the new API key token`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-delete`,children:_jsx(_components.code,{children:`ravion api-key delete`})}),`\n`,_jsx(_components.p,{children:`Delete ApiKey`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` delete`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-y, --yes`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`skip confirmation prompt`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-get`,children:_jsx(_components.code,{children:`ravion api-key get`})}),`\n`,_jsx(_components.p,{children:`Get ApiKey by id`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`emit response as JSON`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-list`,children:_jsx(_components.code,{children:`ravion api-key list`})}),`\n`,_jsx(_components.p,{children:`List ApiKeys`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--cursor \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`cursor`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`emit response as JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--limit \u003cint>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`limit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-id \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional owner id filter. Must be provided with ownerType.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-type \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional owner type filter. Must be provided with ownerId. Available values: MEMBERSHIP, SERVICE_ACCOUNT.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-v, --verbose`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`show full output`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-permissions`,children:_jsx(_components.code,{children:`ravion api-key permissions`})}),`\n`,_jsx(_components.p,{children:`List the permissions a key can have`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` permissions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-id \u003cstring>`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`ID of the membership or service account the key authenticates as.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--owner-type \u003cstring>`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`Type of principal the key authenticates as. Available values: MEMBERSHIP, SERVICE_ACCOUNT.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`emit response as JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`-v, --verbose`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`include display labels`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`ravion-api-key-update`,children:_jsx(_components.code,{children:`ravion api-key update`})}),`\n`,_jsx(_components.p,{children:`Update an API key, including setting or clearing its permission limit`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ravion`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [flags]`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Flags:`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--clear-permissions`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Remove the key’s limit and inherit all of its owner’s permissions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--description \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional context for where or why this API key is used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`emit response as JSON`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--name \u003cstring>`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`User-facing label for the API key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--permissions \u003ctype:action>`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`The most the key may do, as type:action pairs from the authorization catalog, for example `,_jsx(_components.code,{children:`project:read`}),` or `,_jsx(_components.code,{children:`pipelineRun:create`}),`. The key may do something only when its owner may too, so it can narrow its owner’s permissions but never widen them. Null means everything its owner may do. Omitting this field on create uses the owner’s permissions; omitting it on update preserves the current limit. Limits apply only in organizations with authorization enforcement enabled. Limited keys cannot access the Terraform Cloud API or personal-account operations, and cannot select another organization. Only a member signed in to the dashboard or the CLI can change it, never an API key.`]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"ravion api-key","sidebarTitle":"api-key","description":"Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.","og:image":"https://www.ravion.com/og/docs/cli/reference/api-key.png","twitter:image":"https://www.ravion.com/og/docs/cli/reference/api-key.png","href":"/cli/reference/api-key"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"ravion api-key","slug":"ravion-api-key","depth":2,"children":[{"title":"ravion api-key create","slug":"ravion-api-key-create","depth":3,"children":[]},{"title":"ravion api-key delete","slug":"ravion-api-key-delete","depth":3,"children":[]},{"title":"ravion api-key get","slug":"ravion-api-key-get","depth":3,"children":[]},{"title":"ravion api-key list","slug":"ravion-api-key-list","depth":3,"children":[]},{"title":"ravion api-key permissions","slug":"ravion-api-key-permissions","depth":3,"children":[]},{"title":"ravion api-key update","slug":"ravion-api-key-update","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/ravion-b90c0359/c514f1aea613ba76/navbar-auth-link.js","/docs/_mintlify/custom/ravion-b90c0359/d397658c84af5506/schema-anchor-redirects.js","/docs/_mintlify/custom/ravion-b90c0359/ab731f671fc11729/catalog-anchor-redirects.js"],"subdomain":"ravion-b90c0359","siteName":"Ravion Docs","title":"ravion api-key - Ravion Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T18:07:39.164Z","originalFileLocation":"cli/reference/api-key.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Manage Ravion API keys from the CLI. Create service-account keys in Settings \u0026gt; Service accounts \u0026gt; select the account \u0026gt; Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ravion Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"ravion api-key - Ravion Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Manage Ravion API keys from the CLI. Create service-account keys in Settings \u0026gt; Service accounts \u0026gt; select the account \u0026gt; Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ravion Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.ravion.com/docs/cli/reference/api-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.ravion.com/og/docs/cli/reference/api-key.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"ravion api-key - Ravion Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Manage Ravion API keys from the CLI. Create service-account keys in Settings \u0026gt; Service accounts \u0026gt; select the account \u0026gt; Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.ravion.com/og/docs/cli/reference/api-key.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/ravion-b90c0359/PBg3PC_UrJuB5_rW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ravion Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FE6104\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.ravion.com/docs/cli/reference/api-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/cli/reference/api-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ravion.com/#organization\",\"name\":\"Ravion Docs\",\"url\":\"https://www.ravion.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ravion-b90c0359/flJhuOPF2oqAa_dG/logo/light.svg?fit=max\u0026auto=format\u0026n=flJhuOPF2oqAa_dG\u0026q=85\u0026s=1f2e6cab050d18d564cdeb5f723e684d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.ravion.com/docs#website\",\"name\":\"Ravion Docs\",\"url\":\"https://www.ravion.com/docs\",\"publisher\":{\"@id\":\"https://www.ravion.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.ravion.com/docs/cli/reference/api-key#webpage\",\"url\":\"https://www.ravion.com/docs/cli/reference/api-key\",\"name\":\"ravion api-key\",\"description\":\"Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\",\"dateModified\":\"2026-11-13T18:07:39.164Z\",\"isPartOf\":{\"@id\":\"https://www.ravion.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.ravion.com/docs/cli/reference/api-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.ravion.com/docs/cli/reference/api-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Command reference\",\"item\":\"https://www.ravion.com/docs/cli/reference/alert\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ravion api-key\",\"item\":\"https://www.ravion.com/docs/cli/reference/api-key\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.ravion.com/docs/cli/reference/api-key#article\",\"headline\":\"ravion api-key\",\"name\":\"ravion api-key\",\"description\":\"Manage Ravion API keys from the CLI. Create service-account keys in Settings > Service accounts > select the account > Create API key, then use RAVION_API_KEY for automation instead of a personal membership key.\",\"url\":\"https://www.ravion.com/docs/cli/reference/api-key\",\"mainEntityOfPage\":{\"@id\":\"https://www.ravion.com/docs/cli/reference/api-key#webpage\"},\"image\":\"https://www.ravion.com/og/docs/cli/reference/api-key.png\",\"dateModified\":\"2026-11-13T18:07:39.164Z\",\"publisher\":{\"@id\":\"https://www.ravion.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.ravion.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ravion Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ravion Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/cli/reference/api-key.md","siteName":"Ravion Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Deploy to AWS","pages":[{"title":"Deploy to AWS","href":"/deploy/aws"}]},{"tab":"CLI","groups":[{"group":"Get started","boost":0.5,"pages":[{"title":"CLI overview","sidebarTitle":"CLI overview","href":"/cli/overview"},{"title":"Install the Ravion CLI","sidebarTitle":"Installation","href":"/cli/installation"},{"title":"Authenticate the Ravion CLI with API keys","sidebarTitle":"Authentication","href":"/cli/authentication"},{"title":"Releases and changelog","href":"/cli/releases"}]},{"group":"Command reference","boost":0.5,"pages":[{"title":"ravion alert","sidebarTitle":"alert","href":"/cli/reference/alert"},{"title":"ravion analytics","sidebarTitle":"analytics","description":"Read analytics","href":"/cli/reference/analytics"},{"title":"ravion api-key","sidebarTitle":"api-key","href":"/cli/reference/api-key"},{"title":"ravion aws","sidebarTitle":"aws","description":"Connect AWS accounts, manage CloudFormation templates, and configure default networks and regions for Ravion with the `ravion aws` commands.","href":"/cli/reference/aws"},{"title":"ravion billing","sidebarTitle":"billing","href":"/cli/reference/billing"},{"title":"ravion bug","sidebarTitle":"bug","href":"/cli/reference/bug"},{"title":"ravion certificate","sidebarTitle":"certificate","href":"/cli/reference/certificate"},{"title":"ravion code-source","sidebarTitle":"code-source","href":"/cli/reference/code-source"},{"title":"ravion default-value","sidebarTitle":"default-value","href":"/cli/reference/default-value"},{"title":"ravion deploy","sidebarTitle":"deploy","href":"/cli/reference/deploy"},{"title":"ravion describe","sidebarTitle":"describe","href":"/cli/reference/describe"},{"title":"ravion domain","sidebarTitle":"domain","href":"/cli/reference/domain"},{"title":"ravion environment","sidebarTitle":"environment","href":"/cli/reference/environment"},{"title":"ravion execution-environment","sidebarTitle":"execution-environment","href":"/cli/reference/execution-environment"},{"title":"ravion feature-flag","sidebarTitle":"feature-flag","href":"/cli/reference/feature-flag"},{"title":"ravion feedback","sidebarTitle":"feedback","href":"/cli/reference/feedback"},{"title":"ravion git","sidebarTitle":"git","href":"/cli/reference/git"},{"title":"ravion github-actions","sidebarTitle":"github-actions","href":"/cli/reference/github-actions"},{"title":"ravion infrastructure-event","sidebarTitle":"infrastructure-event","href":"/cli/reference/infrastructure-event"},{"title":"ravion integration","sidebarTitle":"integration","href":"/cli/reference/integration"},{"title":"ravion login","sidebarTitle":"login","href":"/cli/reference/login"},{"title":"ravion logout","sidebarTitle":"logout","href":"/cli/reference/logout"},{"title":"ravion logs","sidebarTitle":"logs","href":"/cli/reference/logs"},{"title":"ravion membership","sidebarTitle":"membership","href":"/cli/reference/membership"},{"title":"ravion metrics","sidebarTitle":"metrics","href":"/cli/reference/metrics"},{"title":"ravion module","sidebarTitle":"module","href":"/cli/reference/module"},{"title":"ravion organization","sidebarTitle":"organization","href":"/cli/reference/organization"},{"title":"ravion pipeline","sidebarTitle":"pipeline","href":"/cli/reference/pipeline"},{"title":"ravion project","sidebarTitle":"project","href":"/cli/reference/project"},{"title":"ravion report","sidebarTitle":"report","href":"/cli/reference/report"},{"title":"ravion service-account","sidebarTitle":"service-account","href":"/cli/reference/service-account"},{"title":"ravion setup","sidebarTitle":"setup","href":"/cli/reference/setup"},{"title":"ravion shell-completion","sidebarTitle":"shell-completion","href":"/cli/reference/shell-completion"},{"title":"ravion signup","sidebarTitle":"signup","href":"/cli/reference/signup"},{"title":"ravion stack","sidebarTitle":"stack","href":"/cli/reference/stack"},{"title":"ravion support","sidebarTitle":"support","href":"/cli/reference/support"},{"title":"ravion switch","sidebarTitle":"switch","href":"/cli/reference/switch"},{"title":"ravion terraform","sidebarTitle":"terraform","href":"/cli/reference/terraform"},{"title":"ravion user","sidebarTitle":"user","href":"/cli/reference/user"},{"title":"ravion values","sidebarTitle":"values","href":"/cli/reference/values"},{"title":"ravion version","sidebarTitle":"version","href":"/cli/reference/version"},{"title":"ravion whoami","sidebarTitle":"whoami","href":"/cli/reference/whoami"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"ravion api-key - Ravion Docs","deploymentId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","buildId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","dynamics":[],"chunks":[]}