Some clip ago, Google released nan Gemini CLI (Command Line Interface) instrumentality that is beautiful impressive.
Unlike galore AI tools, nan Gemini CLI app is installed locally, truthful you don’t person to interest astir your queries (or nan results thereof) being utilized for immoderate nefarious purposes.
Currently, Gemini CLI features:
- Fully unfastened source, allowing users to inspect and lend to nan code.
- Powered by Gemini 2.5 Pro.
- Free tier allows 60 requests per infinitesimal and 1,000 requests per time pinch a individual Google account.
- Includes devices for Google Search, record operations, and ammunition commands for enhanced functionality.
- Supports civilization integrations and enhances nan AI’s expertise to understand context.
As you’ve astir apt assumed, based connected nan name, Gemini CLI is simply a command-line-only tool, truthful there’s nary GUI. If you’re not comfortable utilizing nan bid line, past Gemini CLI is not for you.
If, connected nan different hand, you’re astatine location successful a terminal window, Gemini CLI tin easy go yet different instrumentality for your programming journey. You tin usage Gemini CLI to thief you study really to usage a caller programming language, really to up your skills pinch a definite language, and overmuch more.
Let’s find retired really to instal this useful instrumentality and past really to usage it to study a small thing astir JavaScript.
Shall we?
What You’ll Need
To make this work, you’ll request immoderate operating strategy that supports Node.js and NPM. I’ll beryllium demonstrating nan installation connected Zorin OS, which is based connected Ubuntu Linux. On Linux, you’ll besides request a personification pinch sudo privileges.
Let’s get busy.
Installing nan Prerequisites
Before you tin instal Gemini CLI, you person to first instal Node.js and NPM. To do that, we’ll tally nan pursuing commands:
Once that’s taken attraction of, you’re fresh to instal Gemini CLI.
Installing Gemini CLI
You tin instal Gemini CLI pinch a azygous command:
It’ll return a infinitesimal aliases 2 to finish, but it should spell disconnected without a hitch.
You’re not done yet.
You person to authenticate Gemini CLI pinch your individual Google account. To do that, unfastened your default web browser and make judge you’re logged into your Google account. Once you’ve done that, spell backmost to nan terminal model and rumor nan command:
If you person an error, it intends your distribution installed an older type of Node.js. To resoluteness that issue, do nan following:
Once you’ve taken attraction of that, re-run nan gemini command. You will past beryllium prompted to prime an authentication method (Figure 1). Make judge Login pinch Google is selected and deed Enter connected your keyboard.

Figure 1: If you’d prefer, you tin authenticate pinch a Gemini API cardinal aliases Vertex AI.
When your default web browser opens, if you’ve not already logged into your Google account, do truthful now.
When prompted, click Sign In, and you’ll beryllium informed that nan authentication was successful, astatine which constituent you tin adjacent nan browser to find that Gemini CLI is fresh for your first query.
Don’t query yet.
Close Gemini by hitting nan Ctrl+c cardinal operation twice.
Let’s Learn Something About JavaScript
Using nan terminal window, create a caller task directory pinch nan command:
Change into that directory with:
Now, tally nan gemini bid again. The quality this clip is that you’re moving successful a circumstantial directory (as opposed to your location directory).
From nan main Gemini model (Figure 2), let’s rumor nan pursuing query:

Figure 2: Gemini CLI is fresh for your first query.
Hit Enter, and Gemini will spell to work.
As it works, it’ll astir apt punctual you to okay definite tasks, aliases it’ll punctual you to let it to create files (Figure 3).

Figure 3: Resistance is futile, truthful springiness it support to create nan files.
Continue allowing Gemini to do what it needs arsenic it does what we’ve asked of it.
After a fewer minutes, Gemini informed maine to unfastened nan record index.html pinch my web browser to spot nan drop-downs successful action (Figure 4).

Figure 4: Our illustration drop-downs were successfully created.
Okay, but really do we study from this? Well, if you spell backmost to your JS_PROJECT directory, you’ll spot 3 files:
- index.html
- script.js
- style.css
Or, you could tally a follow-up for illustration this:
Gemini CLI will past locomotion you done what it did (Figure 5); either that, aliases it’ll pass you that you’ve either exhausted nan resources of your free tier aliases nan work is excessively busy. If that’s nan case, tally nan query again and spot if it works.

Figure 5: Let Gemini CLI explicate to you really it created nan drop-downs.
Fun times.
And that, my friends, is really you tin instal and usage nan Gemini CLI instrumentality to study thing caller aliases hone your existent skills.
YOUTUBE.COM/THENEWSTACK
Tech moves fast, don't miss an episode. Subscribe to our YouTube channel to watercourse each our podcasts, interviews, demos, and more.
Group Created pinch Sketch.
English (US) ·
Indonesian (ID) ·