This opens a WebSocket connection to the Axra API and forwards every webhook event to your local URL with the Axra-Signature header intact — so you can test signature verification locally.
Trigger (test events)
Send a test webhook event to your active axra listen session:
axra trigger payment.completed
Available test events:
Event
Description
payment.completed
Successful payment
payment.failed
Failed payment (card declined)
treasury.payout.completed
Payout completed
treasury.payout.failed
Payout failed
treasury.wallet.deposit.completed
Wallet deposit received
treasury.user.created
New end-user created
Full workflow
# Terminal 1: start webhook listeneraxra listen --forward-to http://localhost:3000/webhooks# Terminal 2: trigger a test eventaxra trigger payment.completed# Your local server receives the event with valid signature
Use axra listen during development instead of exposing your local server with ngrok. It’s faster and doesn’t require port forwarding.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Axra","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/axra/Wy1MdLLmzpX7ePSr/logo.png?fit=max\u0026auto=format\u0026n=Wy1MdLLmzpX7ePSr\u0026q=85\u0026s=002e9d7a645844c1cebffb6f5549553e","dark":"https://mintcdn.com/axra/Wy1MdLLmzpX7ePSr/logo.png?fit=max\u0026auto=format\u0026n=Wy1MdLLmzpX7ePSr\u0026q=85\u0026s=002e9d7a645844c1cebffb6f5549553e"},"favicon":"https://mintcdn.com/axra/Wy1MdLLmzpX7ePSr/logo.png?fit=max\u0026auto=format\u0026n=Wy1MdLLmzpX7ePSr\u0026q=85\u0026s=002e9d7a645844c1cebffb6f5549553e","api":{},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://app.useaxra.com","label":"Dashboard"},{"href":"mailto:support@useaxra.com","label":"Support"}],"primary":{"type":"button","label":"Get API Keys","href":"https://app.useaxra.com/register"}},"footer":{"socials":{"website":"https://useaxra.com","github":"https://github.com/GoFree-Inc"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"axra","hasAudioNarration":false,"actualSubdomain":"axra","customDomains":["docs.useaxra.com"],"gitSource":{"type":"github","owner":"gofree-inc","repo":"axra-monorepo","deployBranch":"staging","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afb911f1d0b0f920d14b640","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":103},{"language":"default","tag":"Developer Platform","count":24},{"language":"default","tag":"Webhooks","count":19},{"language":"default","tag":"Payments","count":19},{"language":"default","tag":"Fraud","count":8},{"language":"default","tag":"Disputes","count":7},{"language":"default","tag":"Payouts","count":7},{"language":"default","tag":"Treasury — Wallets","count":7},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Treasury","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[{"filePath":"src/app/(docs)/globals.css","content":"@import \"tailwindcss\";"}]}
{"page":{"pagePath":"sdks/cli","slug":"/sdks/cli","pageMetadata":{"title":"CLI","description":"Login, forward webhooks locally, and trigger test events from the command line","href":"/sdks/cli"},"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: \"Login, forward webhooks locally, and trigger test events from the command line\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`installation`,children:`Installation`}),`\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:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @useaxra/cli`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`commands`,children:`Commands`}),`\n`,_jsx(Heading,{level:`3`,id:`login`,children:`Login`}),`\n`,_jsx(_components.p,{children:`Save your API key for future commands:`}),`\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:`axra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --api-key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sk_test_...`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Credentials are stored in `,_jsx(_components.code,{children:`~/.config/axra/credentials.json`}),` with `,_jsx(_components.code,{children:`0600`}),` permissions.`]}),`\n`,_jsx(_components.p,{children:`You can also use environment variables:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AXRA_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sk_test_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AXRA_API_BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`https`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`://`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useaxra`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`com`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # optional`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`listen-webhook-forwarding`,children:`Listen (webhook forwarding)`}),`\n`,_jsx(_components.p,{children:`Forward webhook events to your local development server:`}),`\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:`axra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` listen`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --forward-to`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost:3000/webhooks`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This opens a WebSocket connection to the Axra API and forwards every webhook event to your local URL with the `,_jsx(_components.code,{children:`Axra-Signature`}),` header intact — so you can test signature verification locally.`]}),`\n`,_jsx(Heading,{level:`3`,id:`trigger-test-events`,children:`Trigger (test events)`}),`\n`,_jsxs(_components.p,{children:[`Send a test webhook event to your active `,_jsx(_components.code,{children:`axra listen`}),` session:`]}),`\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:`axra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` trigger`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` payment.completed`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Available test events:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment.completed`})}),_jsx(_components.td,{children:`Successful payment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment.failed`})}),_jsx(_components.td,{children:`Failed payment (card declined)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`treasury.payout.completed`})}),_jsx(_components.td,{children:`Payout completed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`treasury.payout.failed`})}),_jsx(_components.td,{children:`Payout failed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`treasury.wallet.deposit.completed`})}),_jsx(_components.td,{children:`Wallet deposit received`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`treasury.user.created`})}),_jsx(_components.td,{children:`New end-user created`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`full-workflow`,children:`Full workflow`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Terminal 1: start webhook listener`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`axra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` listen`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --forward-to`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://localhost:3000/webhooks`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Terminal 2: trigger a test event`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`axra`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` trigger`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` payment.completed`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Your local server receives the event with valid signature`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`axra listen`}),` during development instead of exposing your local server with ngrok. It’s faster and doesn’t require port forwarding.`]})})]})}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":"CLI","description":"Login, forward webhooks locally, and trigger test events from the command line","href":"/sdks/cli"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Installation","slug":"installation","depth":2,"children":[]},{"title":"Commands","slug":"commands","depth":2,"children":[{"title":"Login","slug":"login","depth":3,"children":[]},{"title":"Listen (webhook forwarding)","slug":"listen-webhook-forwarding","depth":3,"children":[]},{"title":"Trigger (test events)","slug":"trigger-test-events","depth":3,"children":[]}]},{"title":"Full workflow","slug":"full-workflow","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"axra","siteName":"Axra","title":"CLI - Axra","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T16:31:21.462Z","originalFileLocation":"sdks/cli.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=\"light\"}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=\"Login, forward webhooks locally, and trigger test events from the command line\">\u003cmeta data-mint-head name=\"application-name\" content=\"Axra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_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=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CLI - Axra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Login, forward webhooks locally, and trigger test events from the command line\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Axra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.useaxra.com/sdks/cli\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://axra.mintlify.site/_mintlify/api/og/v2?division=SDKs\u0026amp;title=CLI\u0026amp;description=Login%2C+forward+webhooks+locally%2C+and+trigger+test+events+from+the+command+line\u0026amp;theme=c670d279f8e4db233e8ae214\u0026amp;signature=c94d95dd8cf35188b7eaa7397eed55415ac6a3664d353b2bb41af2a84ab1ac43\">\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=\"CLI - Axra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Login, forward webhooks locally, and trigger test events from the command line\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://axra.mintlify.site/_mintlify/api/og/v2?division=SDKs\u0026amp;title=CLI\u0026amp;description=Login%2C+forward+webhooks+locally%2C+and+trigger+test+events+from+the+command+line\u0026amp;theme=c670d279f8e4db233e8ae214\u0026amp;signature=c94d95dd8cf35188b7eaa7397eed55415ac6a3664d353b2bb41af2a84ab1ac43\">\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=\"/mintlify-assets/_mintlify/favicons/axra/5n58I_XtfnPFe0cK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Axra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.useaxra.com/sdks/cli\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdks/cli.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.useaxra.com/#organization\",\"name\":\"Axra\",\"url\":\"https://docs.useaxra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/axra/Wy1MdLLmzpX7ePSr/logo.png?fit=max\u0026auto=format\u0026n=Wy1MdLLmzpX7ePSr\u0026q=85\u0026s=002e9d7a645844c1cebffb6f5549553e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.useaxra.com#website\",\"name\":\"Axra\",\"url\":\"https://docs.useaxra.com\",\"publisher\":{\"@id\":\"https://docs.useaxra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.useaxra.com/sdks/cli#webpage\",\"url\":\"https://docs.useaxra.com/sdks/cli\",\"name\":\"CLI\",\"description\":\"Login, forward webhooks locally, and trigger test events from the command line\",\"dateModified\":\"2026-11-13T16:31:21.462Z\",\"isPartOf\":{\"@id\":\"https://docs.useaxra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.useaxra.com/sdks/cli#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.useaxra.com/sdks/cli#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDKs\",\"item\":\"https://docs.useaxra.com/sdks/node\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CLI\",\"item\":\"https://docs.useaxra.com/sdks/cli\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.useaxra.com/sdks/cli#article\",\"headline\":\"CLI\",\"name\":\"CLI\",\"description\":\"Login, forward webhooks locally, and trigger test events from the command line\",\"url\":\"https://docs.useaxra.com/sdks/cli\",\"mainEntityOfPage\":{\"@id\":\"https://docs.useaxra.com/sdks/cli#webpage\"},\"dateModified\":\"2026-11-13T16:31:21.462Z\",\"publisher\":{\"@id\":\"https://docs.useaxra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.useaxra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Axra\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Axra\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdks/cli.md","siteName":"Axra","nav":{"global":null,"tabs":[{"tab":"Get Started","icon":"play","pages":[{"title":"Get Started","href":"/introduction"}]},{"tab":"Developer Platform","icon":"code","groups":[{"group":"Payments","pages":[{"title":"Overview","href":"/payments/overview"},{"title":"Checkout Sessions","href":"/payments/checkout-sessions"},{"title":"Card Payments","href":"/payments/card-payments"},{"title":"Local payment methods","href":"/payments/local-payment-methods"},{"title":"Local rails — hosted checkout","href":"/payments/local-rails-checkout"},{"title":"Local rails — server-to-server","href":"/payments/local-rails-api"},{"title":"Payer return URL","href":"/payments/return-url"},{"title":"Local-rail payouts","href":"/payments/payouts/index"},{"title":"Payout quote","href":"/payments/payouts/quote"},{"title":"Local payout corridors","href":"/payments/payouts/local-rails"},{"title":"3D Secure (3DS)","href":"/payments/3ds"}]},{"group":"Treasury","pages":[{"title":"Overview","href":"/treasury/overview"},{"title":"End-users","href":"/treasury/end-users"},{"title":"KYC","href":"/treasury/kyc"},{"title":"Wallets","href":"/treasury/wallets"},{"title":"Payouts","href":"/treasury/payouts"},{"title":"Sandbox","href":"/treasury/sandbox"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/manage/webhooks"},{"title":"Disputes","href":"/manage/disputes"},{"title":"Settlements","href":"/manage/settlements"}]},{"group":"SDKs","pages":[{"title":"Node.js SDK","href":"/sdks/node"},{"title":"Python SDK","href":"/sdks/python"},{"title":"Pay.js","description":"Embed secure, PCI-scoped card input fields directly in your payment form","href":"/sdks/pay-js"},{"title":"CLI","href":"/sdks/cli"}]}]},{"tab":"API Reference","icon":"rectangle-terminal","pages":[{"title":"API Reference","href":"/api-reference/payout-recipients/list-payout-recipients-for-the-active-business"}]}]},"basePath":"","title":"CLI - Axra","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}