1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[430],{54257:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en/getting-started/gemini/introduction",function(){return i(40383)}])},40383:function(e,n,i){"use strict";i.r(n),i.d(n,{useTOC:function(){return r}});var s=i(52676),t=i(21396),a=i(53381),d=i(26768),l=i(38274);function r(e){return[{value:"Core Strengths",id:"core-strengths",depth:2},{value:"1. Extra-Long Context Window",id:"1-extra-long-context-window",depth:3},{value:"2. Multimodal Capabilities",id:"2-multimodal-capabilities",depth:3},{value:"3. Fast Response and Reasoning",id:"3-fast-response-and-reasoning",depth:3},{value:"Feature Comparison: Claude Code vs Gemini CLI",id:"feature-comparison-claude-code-vs-gemini-cli",depth:2},{value:"Typical Use Cases",id:"typical-use-cases",depth:2},{value:"Legacy Code Refactoring",id:"legacy-code-refactoring",depth:3},{value:"UI/UX Development",id:"uiux-development",depth:3},{value:"Cross-Language Migration",id:"cross-language-migration",depth:3},{value:"Installation and Configuration",id:"installation-and-configuration",depth:2},{value:"Next Steps",id:"next-steps",depth:2}]}n.default=(0,t.c)(function(e){let{toc:n=r(e)}=e,i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",span:"span",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.h1,{children:"Google Gemini CLI"}),"\n",(0,s.jsx)(i.p,{children:"Google Gemini CLI is a powerful command-line AI assistant built on Googleâs most advanced Gemini models, designed specifically for developers. It combines strong code understanding and generation capabilities with seamless integration into your terminal workflow."}),"\n",(0,s.jsx)(i.h2,{id:n[0].id,children:n[0].value}),"\n",(0,s.jsx)(i.h3,{id:n[1].id,children:n[1].value}),"\n",(0,s.jsx)(i.p,{children:"Gemini CLI supports an extremely large context window (up to 1M+ tokens), which means it can:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Read and understand an entire large codebase in a single pass"}),"\n",(0,s.jsx)(i.li,{children:"Maintain conversation memory over long sessions without needing to repeat background information repeatedly"}),"\n",(0,s.jsx)(i.li,{children:"Handle highly complex dependency relationship analysis"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:n[2].id,children:n[2].value}),"\n",(0,s.jsx)(i.p,{children:"Gemini natively supports multimodal interaction:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"Image understanding"}),": directly analyze UI design mockups and generate frontend code"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"Document analysis"}),": process technical documents in formats such as PDF and image files"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.strong,{children:"Audio/video processing"}),": (depending on the specific version) may support extracting information from multimedia content"]}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:n[3].id,children:n[3].value}),"\n",(0,s.jsx)(i.p,{children:"Thanks to architectural optimizations in the Gemini model, Gemini CLI delivers extremely fast performance when handling complex logical reasoning and code generation, significantly reducing wait times."}),"\n",(0,s.jsx)(i.h2,{id:n[4].id,children:n[4].value}),"\n",(0,s.jsx)(i.p,{children:"Both are top-tier AI CLI tools, but each has its strengths:"}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Feature"}),(0,s.jsx)(i.th,{children:"Claude Code"}),(0,s.jsx)(i.th,{children:"Gemini CLI"})]})}),(0,s.jsxs)(i.tbody,{children:[(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.strong,{children:"Best at"})}),(0,s.jsx)(i.td,{children:"Complex logical reasoning, highly human-centered interaction"}),(0,s.jsx)(i.td,{children:"Massive context handling, multimodal input, response speed"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.strong,{children:"Ecosystem integration"})}),(0,s.jsx)(i.td,{children:"Strong MCP protocol support"}),(0,s.jsx)(i.td,{children:"Deep integration with Google Cloud ecosystem"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.strong,{children:"Context"})}),(0,s.jsx)(i.td,{children:"Excellent"}),(0,s.jsx)(i.td,{children:"Extreme (1M+ Tokens)"})]})]})]}),"\n",(0,s.jsx)(i.h2,{id:n[5].id,children:n[5].value}),"\n",(0,s.jsx)(i.h3,{id:n[6].id,children:n[6].value}),"\n",(0,s.jsx)(i.p,{children:"Use Gemini CLIâs extra-long context to load an entire legacy projectâs codebase in one pass for c
1omprehensive dependency analysis and refactoring suggestions, without needing to process it in batches."}),"\n",(0,s.jsx)(i.h3,{id:n[7].id,children:n[7].value}),"\n",(0,s.jsx)(i.p,{children:"Upload a design sketch or screenshot and let Gemini CLI generate the corresponding React/Vue component code directly."}),"\n",(0,s.jsx)(i.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"",children:(0,s.jsxs)(i.code,{children:[(0,s.jsx)(i.span,{children:(0,s.jsx)(i.span,{style:{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},children:"# Example: generate code based on an image"})}),"\n",(0,s.jsxs)(i.span,{children:[(0,s.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"$"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" gemini"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:' "Implement this login page using Tailwind CSS. Reference image: ./design-mockup.png"'})]})]})}),"\n",(0,s.jsx)(i.h3,{id:n[8].id,children:n[8].value}),"\n",(0,s.jsx)(i.p,{children:"When performing large-scale migrations between programming languages, Gemini CLIâs multilingual understanding and long context window ensure consistency and accuracy throughout the migration."}),"\n",(0,s.jsx)(i.h2,{id:n[9].id,children:n[9].value}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.em,{children:"(Add specific installation steps here, e.g. npm or pip commands)"})}),"\n",(0,s.jsx)(i.pre,{icon:l.Fx,tabIndex:"0","data-language":"bash","data-word-wrap":"",children:(0,s.jsxs)(i.code,{children:[(0,s.jsx)(i.span,{children:(0,s.jsx)(i.span,{style:{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},children:"# Example installation command"})}),"\n",(0,s.jsxs)(i.span,{children:[(0,s.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"npm"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" install"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:" -g"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" @google/gemini-cli"})]}),"\n",(0,s.jsx)(i.span,{children:(0,s.jsx)(i.span,{style:{"--shiki-light":"#6A737D","--shiki-dark":"#6A737D"},children:"# or"})}),"\n",(0,s.jsxs)(i.span,{children:[(0,s.jsx)(i.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:"pip"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" install"}),(0,s.jsx)(i.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:" google-gemini-cli"})]})]})}),"\n",(0,s.jsx)(i.h2,{id:n[10].id,children:n[10].value}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"/getting-started/get-api-key",children:"Get API Key"})," (if applicable)"]}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"/getting-started/faq",children:"View FAQs"})}),"\n"]})]})},"/en/getting-started/gemini/introduction",{filePath:"pages/en/getting-started/gemini/introduction.mdx",timestamp:1778940118e3,pageMap:a.v,frontMatter:{title:"Google Gemini CLI",description:"Learn about the core features and unique strengths of Google Gemini CLI"},title:"Google Gemini CLI"},"undefined"==typeof RemoteContent?r:RemoteContent.useTOC)}},function(e){e.O(0,[1396,3381,2888,9774,179],function(){return e(e.s=54257)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.