Start Gemini CLI is a simple, robust launcher script designed to easily start the Gemini Command Line Interface. It handles the details of determining the script's directory, setting the working environment, and executing the gemini command, ensuring a smooth startup experience.
Built by: Zachary Whiteman & Google Gemini Ai.
This script is a launcher for the Gemini CLI tool.
To run this script, you will need:
- Windows Operating System.
- PowerShell 5.1 or newer.
- Gemini CLI: The
geminiexecutable must be installed and available in your system's PATH environment variable.
- Download: Download the
Start-Gemini-CLI.PS1script file. - Unblock: Right-click the file, go to Properties, and click
Unblock. - Run: Execute the script from a PowerShell console or by double-clicking it.
.\Start-Gemini-CLI.PS1
Simply run the script. It will:
- Identify its own location.
- Set the console's working directory to match the script.
- Launch the
geminicommand.
- Auto-Directory Detection: Automatically finds the correct path using
$PSScriptRootor fallback methods. - Context Management: Sets the session location to the script's folder, which is helpful for relative file access.
- Error Handling: Catches errors (like a missing executable) and displays detailed information. It pauses the console before closing so you can read the error message.
- Scripting Language: PowerShell 5.1+
- Wrapper: This is purely a wrapper script. It does not contain the logic for the Gemini CLI itself; it only invokes the external command.
Distributed under the MIT License. See LICENSE.txt for more information.
Zach Whiteman - elitesoftwarecolimited@gmail.com
HuggingFace - https://huggingface.co/EliteSoftware
HuggingFace (Personal) - https://huggingface.co/TheShadyRainbow
LinkTree - https://linktr.ee/zachrainbow