The CodeCrafters CLI is a command-line tool that allows you to run tests & view test results from your local machine. Using
the CLI is faster than using Git since you don’t need to commit your changes to run tests.If you haven’t installed the CLI yet, read this.If you’ve already installed the CLI, you can check its version by running:
codecrafters --version
The latest available version can be found here.To update the CLI, follow the OS-specific instructions below.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"CodeCrafters","colors":{"primary":"#14B8A6","light":"#00EFD1","dark":"#0D9488"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/codecrafters/rBHxsHriiZT92xcM/logo/light.svg?fit=max\u0026auto=format\u0026n=rBHxsHriiZT92xcM\u0026q=85\u0026s=c25b07c68301871e1fb0d262abf5b3be","dark":"https://mintcdn.com/codecrafters/rBHxsHriiZT92xcM/logo/dark.svg?fit=max\u0026auto=format\u0026n=rBHxsHriiZT92xcM\u0026q=85\u0026s=dcabf5c8dbac81c59f7d6c740914b97f","href":"https://codecrafters.io"},"navbar":{"links":[{"label":"Login","href":"https://app.codecrafters.io/login"}],"primary":{"type":"button","label":"Try Now","href":"https://app.codecrafters.io/"}},"footer":{"socials":{"twitter":"https://twitter.com/codecraftersio","github":"https://github.com/codecrafters-io"}},"integrations":{"posthog":{"apiKey":"phc_jCl1mm3XbnvyIUr4h54oORqWEqj37gxhZIOebREBwxb"},"plausible":{"domain":"docs.codecrafters.io"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Forum","href":"https://forum.codecrafters.io/","icon":"discourse","color":{"light":"#5865F2","dark":"#5865F2"}},{"anchor":"Demo","href":"https://codecrafters.io/videos/demo","icon":"circle-play","color":{"light":"#00EFD1","dark":"#00EFD1"}}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"codecrafters","hasAudioNarration":false,"actualSubdomain":"codecrafters","customDomains":["docs.codecrafters.io"],"gitSource":{"type":"github","owner":"codecrafters-io","repo":"docs","deployBranch":"master","contentDirectory":"docs","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c3420e965794a0a73468","collectionId":"62739c3d-7f8e-4106-bc9d-338a8bc756d9","schemaVersion":"v2"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae913e7f004577547955f8d:success","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Documentation","count":39},{"language":"default","tag":"Contributor Guides","count":20},{"language":"default","tag":"Challenges","count":19},{"language":"default","tag":"Language Support","count":13},{"language":"default","tag":"Authoring Concepts","count":11},{"language":"default","tag":"Authoring Challenges","count":5},{"language":"default","tag":"Concepts Style Guide","count":5},{"language":"default","tag":"Membership Benefits","count":5},{"language":"default","tag":"CLI","count":4},{"language":"default","tag":"Adding Language Support","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"llms-txt-v2","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":"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":"vite-origin","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cli/update","slug":"/cli/update","pageMetadata":{"title":"How do I update the CLI?","description":null,"href":"/cli/update","hidden":false},"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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The CodeCrafters CLI is a command-line tool that allows you to run tests \u0026 view test results from your local machine. Using\nthe CLI is faster than using Git since you don’t need to commit your changes to run tests.`}),`\n`,_jsxs(_components.p,{children:[`If you haven’t installed the CLI yet, `,_jsx(_components.a,{href:`/cli/installation`,children:`read this`}),`.`]}),`\n`,_jsx(_components.p,{children:`If you’ve already installed the CLI, you can check its version by running:`}),`\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:`codecrafters`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --version`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The latest available version can be found `,_jsx(_components.a,{href:`https://github.com/codecrafters-io/cli/releases`,children:`here`}),`.`]}),`\n`,_jsx(_components.p,{children:`To update the CLI, follow the OS-specific instructions below.`}),`\n`,_jsx(Heading,{level:`2`,id:`mac`,children:_jsxs(`div`,{className:`mint-flex mint-items-center`,children:[_jsx(`svg`,{fill:`currentColor`,className:`mint-relative mint-top-[-2px] mint-mr-2`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:_jsx(`path`,{d:`M22 17.607c-.786 2.28-3.139 6.317-5.563 6.361-1.608.031-2.125-.953-3.963-.953-1.837 0-2.412.923-3.932.983-2.572.099-6.542-5.827-6.542-10.995 0-4.747 3.308-7.1 6.198-7.143 1.55-.028 3.014 1.045 3.959 1.045.949 0 2.727-1.29 4.596-1.101.782.033 2.979.315 4.389 2.377-3.741 2.442-3.158 7.549.858 9.426zm-5.222-17.607c-2.826.114-5.132 3.079-4.81 5.531 2.612.203 5.118-2.725 4.81-5.531z`})}),_jsx(`span`,{children:`Mac`})]})}),`\n`,_jsx(_components.p,{children:`Re-run the install script:`}),`\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:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://codecrafters.io/install.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`linux`,children:_jsxs(`div`,{className:`mint-flex mint-items-center`,children:[_jsx(`svg`,{fill:`currentColor`,className:`mint-relative mint-top-[-2px] mint-mr-2`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:_jsx(`path`,{d:`M20.581 19.049c-.55-.446-.336-1.431-.907-1.917.553-3.365-.997-6.331-2.845-8.232-1.551-1.595-1.051-3.147-1.051-4.49 0-2.146-.881-4.41-3.55-4.41-2.853 0-3.635 2.38-3.663 3.738-.068 3.262.659 4.11-1.25 6.484-2.246 2.793-2.577 5.579-2.07 7.057-.237.276-.557.582-1.155.835-1.652.72-.441 1.925-.898 2.78-.13.243-.192.497-.192.74 0 .75.596 1.399 1.679 1.302 1.461-.13 2.809.905 3.681.905.77 0 1.402-.438 1.696-1.041 1.377-.339 3.077-.296 4.453.059.247.691.917 1.141 1.662 1.141 1.631 0 1.945-1.849 3.816-2.475.674-.225 1.013-.879 1.013-1.488 0-.39-.139-.761-.419-.988zm-9.147-10.465c-.319 0-.583-.258-1-.568-.528-.392-1.065-.618-1.059-1.03 0-.283.379-.37.869-.681.526-.333.731-.671 1.249-.671.53 0 .69.268 1.41.579.708.307 1.201.427 1.201.773 0 .355-.741.609-1.158.868-.613.378-.928.73-1.512.73zm1.665-5.215c.882.141.981 1.691.559 2.454l-.355-.145c.184-.543.181-1.437-.435-1.494-.391-.036-.643.48-.697.922-.153-.064-.32-.11-.523-.127.062-.923.658-1.737 1.451-1.61zm-3.403.331c.676-.168 1.075.618 1.078 1.435l-.31.19c-.042-.343-.195-.897-.579-.779-.411.128-.344 1.083-.115 1.279l-.306.17c-.42-.707-.419-2.133.232-2.295zm-2.115 19.243c-1.963-.893-2.63-.69-3.005-.69-.777 0-1.031-.579-.739-1.127.248-.465.171-.952.11-1.343-.094-.599-.111-.794.478-1.052.815-.346 1.177-.791 1.447-1.124.758-.937 1.523.537 2.15 1.85.407.851 1.208 1.282 1.455 2.225.227.871-.71 1.801-1.896 1.261zm6.987-1.874c-1.384.673-3.147.982-4.466.299-.195-.563-.507-.927-.843-1.293.539-.142.939-.814.46-1.489-.511-.721-1.555-1.224-2.61-2.04-.987-.763-1.299-2.644.045-4.746-.655 1.862-.272 3.578.057 4.069.068-.988.146-2.638 1.496-4.615.681-.998.691-2.316.706-3.14l.62.424c.456.337.838.708 1.386.708.81 0 1.258-.466 1.882-.853.244-.15.613-.302.923-.513.52 2.476 2.674 5.454 2.795 7.15.501-1.032-.142-3.514-.142-3.514.842 1.285.909 2.356.946 3.67.589.241 1.221.869 1.279 1.696l-.245-.028c-.126-.919-2.607-2.269-2.83-.539-1.19.181-.757 2.066-.997 3.288-.11.559-.314 1.001-.462 1.466zm4.846-.041c-.985.38-1.65 1.187-2.107 1.688-.88.966-2.044.503-2.168-.401-.131-.966.36-1.493.572-2.574.193-.987-.023-2.506.431-2.668.295 1.753 2.066 1.016 2.47.538.657 0 .712.222.859.837.092.385.219.709.578 1.09.418.447.29 1.133-.635 1.49zm-8-13.006c-.651 0-1.138-.433-1.534-.769-.203-.171.05-.487.253-.315.387.328.777.675 1.281.675.607 0 1.142-.519 1.867-.805.247-.097.388.285.143.382-.704.277-1.269.832-2.01.832z`})}),_jsx(`span`,{children:`Linux`})]})}),`\n`,_jsx(_components.p,{children:`Re-run the install script:`}),`\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:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://codecrafters.io/install.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`windows`,children:_jsxs(`div`,{className:`mint-flex mint-items-center`,children:[_jsx(`svg`,{fill:`currentColor`,className:`mint-relative mint-top-[-2px] mint-mr-3`,width:`20`,height:`20`,viewBox:`0 0 24 24`,children:_jsx(`path`,{d:`M0 12v-8.646l10-1.355v10.001h-10zm11 0h13v-12l-13 1.807v10.193zm-1 1h-10v7.646l10 1.355v-9.001zm1 0v9.194l13 1.806v-11h-13z`})}),_jsx(`span`,{children:`Windows`})]})}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`PowerShell`,id:`powershell`,children:[_jsx(_components.p,{children:`Run the install script:`}),_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:`irm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://codecrafters.io/install.ps1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` iex`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`WSL`,id:`wsl`,children:[_jsx(_components.p,{children:`Run the install script:`}),_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:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -fsSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://codecrafters.io/install.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`})]}),`\n`]})})})]})]})]})}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":"How do I update the CLI?","description":null,"href":"/cli/update","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Mac","slug":"mac","depth":2,"children":[]},{"title":"Linux","slug":"linux","depth":2,"children":[]},{"title":"Windows","slug":"windows","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/codecrafters/d677637e7250174a/facebook-pixel.js"],"dynamicCss":".mint-relative {\n position: relative\n}\n.mint-top-\\[-2px\\] {\n top: -2px\n}\n.mint-mr-2 {\n margin-right: 0.5rem\n}\n.mint-mr-3 {\n margin-right: 0.75rem\n}\n.mint-flex {\n display: flex\n}\n.mint-items-center {\n align-items: center\n}","subdomain":"codecrafters","siteName":"CodeCrafters","title":"How do I update the CLI? - CodeCrafters","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-17T06:33:00.644Z","originalFileLocation":"cli/update.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=\"application-name\" content=\"CodeCrafters\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_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/codecrafters/PBz8LSjZyTkbb-oc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How do I update the CLI? - CodeCrafters\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CodeCrafters\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.codecrafters.io/cli/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://codecrafters.mintlify.app/_mintlify/api/og/v2?division=CLI\u0026amp;title=How+do+I+update+the+CLI%3F\u0026amp;theme=5efe4eff3bb454a030fbf1e6\u0026amp;signature=a873bbc9e965ab9697a5320ccb733330c50a197692432152a5c55e00c182bbae\">\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=\"How do I update the CLI? - CodeCrafters\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://codecrafters.mintlify.app/_mintlify/api/og/v2?division=CLI\u0026amp;title=How+do+I+update+the+CLI%3F\u0026amp;theme=5efe4eff3bb454a030fbf1e6\u0026amp;signature=a873bbc9e965ab9697a5320ccb733330c50a197692432152a5c55e00c182bbae\">\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/codecrafters/PBz8LSjZyTkbb-oc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CodeCrafters\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#14B8A6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.codecrafters.io/cli/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.codecrafters.io/#organization\",\"name\":\"CodeCrafters\",\"url\":\"https://docs.codecrafters.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/codecrafters/rBHxsHriiZT92xcM/logo/light.svg?fit=max\u0026auto=format\u0026n=rBHxsHriiZT92xcM\u0026q=85\u0026s=c25b07c68301871e1fb0d262abf5b3be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.codecrafters.io#website\",\"name\":\"CodeCrafters\",\"url\":\"https://docs.codecrafters.io\",\"publisher\":{\"@id\":\"https://docs.codecrafters.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.codecrafters.io/cli/update#webpage\",\"url\":\"https://docs.codecrafters.io/cli/update\",\"name\":\"How do I update the CLI?\",\"dateModified\":\"2026-02-17T06:33:00.644Z\",\"isPartOf\":{\"@id\":\"https://docs.codecrafters.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.codecrafters.io/cli/update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.codecrafters.io/cli/update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI\",\"item\":\"https://docs.codecrafters.io/cli/installation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I update the CLI?\",\"item\":\"https://docs.codecrafters.io/cli/update\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.codecrafters.io/cli/update#article\",\"headline\":\"How do I update the CLI?\",\"name\":\"How do I update the CLI?\",\"url\":\"https://docs.codecrafters.io/cli/update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.codecrafters.io/cli/update#webpage\"},\"dateModified\":\"2026-02-17T06:33:00.644Z\",\"publisher\":{\"@id\":\"https://docs.codecrafters.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.codecrafters.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CodeCrafters\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CodeCrafters","nav":{"global":{"anchors":[{"anchor":"Forum","href":"https://forum.codecrafters.io/","icon":"discourse","color":{"light":"#5865F2","dark":"#5865F2"}},{"anchor":"Demo","href":"https://codecrafters.io/videos/demo","icon":"circle-play","color":{"light":"#00EFD1","dark":"#00EFD1"}}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"}]},{"group":"Membership Benefits","pages":[{"title":"Unlimited content access","href":"/membership/content"},{"title":"Turbo test runs","href":"/membership/turbo"},{"title":"Code examples","href":"/membership/code-examples"},{"title":"Anonymous mode","href":"/membership/anonymous-mode"},{"title":"Perks","href":"/membership/perks"}]},{"group":"Features","pages":[{"title":"Publish to GitHub","href":"/features/publish-to-github"}]},{"group":"Challenges","pages":[{"group":"Language Support","pages":[{"title":"Introduction","href":"/challenges/language-support/introduction"},{"title":"C++","href":"/challenges/language-support/cpp"},{"title":"C#","href":"/challenges/language-support/csharp"},{"title":"Go","href":"/challenges/language-support/go"},{"title":"Java","href":"/challenges/language-support/java"},{"title":"JavaScript","href":"/challenges/language-support/javascript"},{"title":"Kotlin","href":"/challenges/language-support/kotlin"},{"title":"OCaml","href":"/challenges/language-support/ocaml"},{"title":"Python","href":"/challenges/language-support/python"},{"title":"Ruby","href":"/challenges/language-support/ruby"},{"title":"Rust","href":"/challenges/language-support/rust"},{"title":"TypeScript","href":"/challenges/language-support/typescript"},{"title":"Zig","href":"/challenges/language-support/zig"}]},{"title":"Program Interface","href":"/challenges/program-interface"},{"title":"How do I debug test failures?","href":"/challenges/debug-test-failures"},{"title":"Can I install additional dependencies?","href":"/challenges/install-additional-dependencies"},{"title":"Can I re-attempt a challenge in a different language?","href":"/challenges/reattempt-challenge"},{"title":"How do I debug test failures in the Redis Challenge?","href":"/challenges/debug-test-failures-redis"},{"title":"How do challenges work?","href":"/challenges/how-challenges-work"}]},{"group":"Troubleshooting","pages":[{"title":"Large files found","href":"/troubleshooting/large-files"},{"title":"Git clone errors","href":"/troubleshooting/fix-clone-errors"},{"title":"No changes found","href":"/troubleshooting/no-changes"}]},{"group":"CLI","pages":[{"title":"How do I install the CLI?","href":"/cli/installation"},{"title":"How do I use the CLI?","description":null,"href":"/cli/usage"},{"title":"How do I update the CLI?","href":"/cli/update"},{"title":"How do I uninstall the CLI?","description":null,"href":"/cli/uninstall"}]},{"group":"Billing","pages":[{"title":"How do I get an invoice?","href":"/billing/get-an-invoice"},{"title":"How do I get a local currency invoice?","href":"/billing/get-a-local-currency-invoice"}]},{"group":"Community","pages":[{"title":"How do I get access the Forum?","href":"/community/forum-access"}]},{"group":"Profile Pages","pages":[{"title":"Where is my profile page?","href":"/profile-pages/where-is-my-profile-page"},{"title":"Can I list multiple languages on my profile page?","href":"/profile-pages/list-multiple-languages"}]},{"group":"Account","pages":[{"title":"How do I delete my account?","href":"/account/delete-account"}]}]},{"tab":"Contributor Guides","pages":[{"title":"Contributor Guides","href":"/contributors/introduction"}]}]},"basePath":"","title":"How do I update the CLI? - CodeCrafters","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}