
What Is Ship CLI? Open Source AI Agent Use Guide u
Automatically translatedGemini CLI announced by Google on 25 June 2025 FreeTags open source (Apache 2.0) is an artificial intelligence tool. Do you want to write code with artificial intelligence, automate tasks and improve your own smart assistant? Gemini CLI is fully activated at this point with open source and strong structure.
What is Gemini CLI?
Traditional artificial intelligence assistants often work in web browsers, Gemini CLI directly receives commands in natural language as integrated into your terminal and returns results instantly. Thus eliminates browser-oriented interaction needs in tasks such as code writing, debugging, content production and research.
Gemini is one of the most important advantages of CLI, open source It is. The fully reviewed code in GitHub is presented with some; developers can contribute as they wish, fix errors or customize them according to their needs. The only need to use is a personal Google account with installing Node.js (v18+) and npm/yarn to your system. With Google account Free After receiving the “Gemini Code Assist” license, there is a limitless access to 60, 1,000 API requests per minute.
The brain of the vehicle, Google Gemini 2.5 Tags creates the model. This model, 1 million tokensThe context of up to 30,000 lines of code or long documents can simultaneously process. Thanks to the wide context window, we can produce consistent and contextually rich responses by grasping large code bases, project documentation and long chat history at one time.
What is Setup and First Step Methods?
Pre-Terms: Prepare Your System
- Node.js
- Version 18 or uzer Home must.
- To check your current version:
node -v
- pm (comes with Node.js) or by preference Tags available.
- to check your npm version:
npm -v
- Windows 10+ works on macOS 10.15+ or a modern Linux distribution (Ubuntu, Fedora, etc.)
- A personal Google account is required for first authentication. Additional configuration may be required in corporate/Workspace accounts.
Installation Methods
You can install Gemini CLI in two basic ways:
a) Single Expedition Operation with NPX
npx https://github.com/google-gemini/gemini-cli- The command directly downloads and runs the package from GitHub.
- The most up-to-date version of each use automatically loads.
b) Global Setup
npm install -g @google/gemini-cligeminiallows you to use the command from each array.- If you experience permission error in Linux/macOS
sudoadd.
c) From Homebrew (macOS/Linux)
brew install gemini-cli- Quick and clean installation option for those who use Homebrew.
Initial Operation and Theme Selection
After the installation is completed, enter the following command in the terminal:
gemini
- Color Theme Selection:
- CLI offers a variety of theme options.
- Browse with arrow keys and confirm with Enter.
- Guided Start:
- A short welcome message and basic script promotion appears.
This step reduces eye fatigue in long-term use, allowing you to easily customize the tool.
Authentication: Google Session u
After the initial operation or gemini auth login with command:
gemini auth login- Your browser opens and you’ll be asked to log in with your Google account.
- You will receive a “Authentication successful” message that returns to CLI after successful entry.
- Free “Gemini Code Assist” license 60 minutesTags 1,000 per day model request Home
Installation Verification and Fast Test
Check everything correctly with the following commands:
gemini --version- Shows the load version.
gemini "Merhaba, kendini tanıtır mısın?"- Test the response of your AI assistant with a simple natural language request.
If you’re getting a hassle-free response, you’ve started your first chat with artificial intelligence through your terminal.
Gemini CLI Basic Use and Commands What are?
1. Start CLI
- Interactive Mode (REPL)
geminiThis command starts an interactive terminal session like chat; every input you do is processed instantly. - Single Flight Inquiry
gemini -p "Proje dizinindeki tüm JavaScript dosyalarını listele"-pReturn prompt and return response once. Ideal for quick queries without having to log in. - Piping (Pipeing)
echo "Count to five" | geminiYou can process the standard output directly to CLI.
2. 2. Slash Commands (/)
The most used commands of Gemini CLI begin with the “slash” prefik. Below you can see a few of the most important:
| Home Tags | Description |
|---|---|
/help | Shows list and brief descriptions of existing commands. |
/tools | Installed tools (file, shell, web search etc. ) lists. |
/clear | Cleans the terminal screen (Ctrl+L also sees the same work). |
/stats | Report token usage and savings statistics. |
/memory show | All GEMINI.md images by combining their contexts. |
/memory refresh | All GEMINI.md reinstall files. |
/chat save | He saves anki chat with the specified label. |
/chat resume | It continues with the same tag to the chat previously recorded. |
/restore [checkpoint_adı] | Restored snapshot for file changes. |
/auth | Changes the authentication method. |
/theme | Allows you to change the CLI view contact. |
/bug | CLI forms error notice. |
/quit | The session finishes and returns to normal terminal mode. |
3. Context Commands (@)
To include files and folders on the project prompt @ You can use the sign:
- Single File
gemini -p "Bu fonksiyonun ne işe yaradığını açıkla" @./src/utils.js - Folder
gemini -p "Tüm bileşenleri React 18’e uygun şekilde güncelle" @./src/components/
CLI, .gitignore. They only need to track files by passing files automatically.
4. Shell Commands (!)
Direct shell commands to run:
- Single Command
gemini > !ls -la - Permanent Shell Mode
gemini > !
$ git status $npm test $ ! # again '!' Tags
Shell tool provides seamless use of tests, build scripts, linters and other CLI tools.
Gemini CLI, It offers a powerful and accessible tool that converts our way to work with artificial intelligence agents in the open source world. For developers, researchers and curious users, flexible, customizable and community-supported this platform is now much easier to create AI solutions. You can also offer your own contribution to the artificial intelligence of the future by experimenting Gemini CLI.
Hollywood ve Yapay Zeka: 2025'in Hayal Kırıklığı Yaratan Projeleri


Açık Problemler İçin Prompt Mühendisliği Teknikleri




