Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

JK JK 2038 
Created at  
1,119 0 0

CLI stands for Command Line Interface. And, yes, it does look like something from the Stone Age. However, it appears that engineers are very excited about AI through CLIs. My father told me, and it's kind of jarring. They all talk about how much faster, more accurate, and automated it is compared to simply clicking around in a GUI.

Apparently, it gives you a lot more control over the AI models - like, super precise. So you can build things much faster, plug them right into your existing code (think shell scripts or fancy CI/CD setups), and everything is super consistent, which is apparently a huge deal for getting things working and out the door.

Furthermore, this text-based approach is faster, requires less of your computer's brainpower, and is far superior for performing multiple tasks at once that would be a nightmare (or simply impossible) with a mouse. Essentially, it makes development more efficient and customizable.

I'm sure there are tons of other AI-specific tools and code out there, but one that's getting a lot of attention right now, especially for running large language models on your own machine, is something called Ollama.
 

Today I had the opportunity to learn about "Gemini CLI".

███            █████████  ██████████ ██████   ██████ █████ ██████   █████ █████
░░░███         ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███
  ░░░███      ███     ░░░  ░███  █ ░  ░███░█████░███  ░███  ░███░███ ░███  ░███
    ░░░███   ░███          ░██████    ░███░░███ ░███  ░███  ░███░░███░███  ░███
     ███░    ░███    █████ ░███░░█    ░███ ░░░  ░███  ░███  ░███ ░░██████  ░███
   ███░      ░░███  ░░███  ░███ ░   █ ░███      ░███  ░███  ░███  ░░█████  ░███
 ███░         ░░█████████  ██████████ █████     █████ █████ █████  ░░█████ █████
░░░            ░░░░░░░░░  ░░░░░░░░░░ ░░░░░     ░░░░░ ░░░░░ ░░░░░    ░░░░░ ░░░░░

You may have already had the opportunity to meet Gemini, which is developed by Google and integrated with Google Tools.


How does Gemini CLI differ from other tools?

Essentially, the main advantage here is that it is tightly integrated with Google. For example, you can simply log in and manage your projects using your regular Google account. That's huge because it makes getting started a lot easier, especially if you're already familiar with Google Cloud or its developer tools.

Unlike OpenAI, which requires you to generate and manage separate API keys. Gemini simply says, “Hey, do you already have a Google account?” Okay, you're in.

But it's more than just a simple login. Gemini provides direct access to Google's own fancy multimodal models - think text, images, and whatever data you throw at it - from the command line. Plus, it's designed to work seamlessly with other Google Cloud AI products, such as Vertex AI, so everything feels connected if you're building within Google's ecosystem.

Sure, other platforms like OpenAI have been around longer, with a plethora of different models (such as GPT-4 and DALL-E) and tools. But Gemini's real selling point is its super-smooth onboarding if you're already a Google user, as well as how it seamlessly integrates Google's latest multimodal AI into their cloud development flow.

 

How do you install?

Gemini CLI installation is incredibly simple. Open your Terminal (On Windows, Windows + R → cmd + [enter] ) → Run

npm install -g @google/gemini-cli

You should have Node.js 18 or later on your Windows or Mac. You can get it at https://nodejs.org/en

 

Below is the installation result on Windows

D:\>npm install -g @google/gemini-cli

added 576 packages in 2m

148 packages are looking for funding
  run `npm fund` for details
npm notice
npm notice New major version of npm available! 10.2.5 -> 11.6.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.2
npm notice Run npm install -g npm@11.6.2 to update!
npm notice

 

Below is the installation result on Mac

% npm install -g @google/gemini-cli

added 583 packages in 21s

148 packages are looking for funding
  run `npm fund` for details

 

How to configure the default environment?

Just run gemini on your terminal to start

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

The action you should do is just press the ENTER key on the #1 option. If you have another option for #2 or #3, you can do it.

 

If everything goes fine, you have to select Google Account and the you will see screen like below:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

 

Let's come back to your terminal. Can you see the below prompt?

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

BOOM!! Welcome to the new world, if you can see the prompt above!

 

Now let's do the first action for the next step. Input /quit + ENTER to escape Gemini CLI

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

 

Above looks so simple, but that is what you have to know. In order to exit Gemini CLI, /quit is the magic keyword.

 

Let's make your first app with Gemini > Simple Video Service based on video.js

Because we have Node.js, let's make a simple Node.js app.

Let's run gemini on your Terminal

gemini

We plan to implement a simple code to play a video from Video JS.

Implement Node.js app playing a video from “https://vjs.zencdn.net/v/oceans.mp4”.
Use video.js for the video player.
Set the title as “Ocean”.

In some cases, you will see messages like below; then just re-input the prompt again. If you just want to re-type, just press ↑, then you will see the previous prompt you used. If you don't see, you can just ignore below.

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

Once you run your prompt, you will see some prompts asking you for permission to run it on your system, like below:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

Select 1 or 2. I will select 2 in my case. Then it automatically installs required system components to make it work.

If everything goes fine, you will see pages like below:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

Now, time for you to run your app.

run server

The result will be like below:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

Let's review the implemented code with your browser. Just open http://localhost:3000 for testing, and the result will be like this:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

 

Make some changes at the video player

Let's make some changes at the video player. Press [ESC] to stop the server.

And input below prompt.

 make the video player use whole screen width and height

Then Gemini changes it like this:

Gemini CLI makes a Magic! Time to speed up your app development with Google Gemini CLI!

You can test the result at http://localhost:3000. Now the app fully use whole screen.

 

The code you created with Gemini CLI is like this:

├── index.html
├── package-lock.json
├── package.json
└── server.js

4 files

You can add more detail to it by reviewing it with your VSCode even though you have no detailed knowledge in Node.js.

 

You like the previous code? Then roll back.

If you just want to roll back to the previous code, then make prompt as rollback

rollback

 

The way to work with Gemini AI is always based on your prompt

When you work with AI, you should provide it with clear guidance. The AI should have specific actions to perform based on your guidance.

<action>
And <action>
...

 

Now, you can make your own magic with Gemini CLI.

I hope this is useful to someone.

Tags AI CLI AI-based coding Coding Command Line Interface Gemini Gemini CLI Google Gemini 제미나이 제미나이 CLI 제미니 Facebook X
Comments 0
Similar posts
  1. Why ROLLBACK is useful when you work with Google Gemini CLI?
    1,046
  2. Challenge: One Code Problem Per Day
    1,251
  3. Dataset of California Foodbanks
    7,232
  1. Comprehensive Guide to Recent Critical PHP Vulnerabilities
    626
  2. The Complete Guide to Golang: History, Features, Real-World Uses, and Code Examples
    1,071
  3. Bootstrap vs. Tailwind CSS: Origins, Features, Pros & Cons, and How to Choose the Right Framework
    347
  4. Telemetry vs. Analytics: Understanding the Difference and Why It Matters
    499
  5. The Evolution and Production Reality of Agentic AI
    389
  6. Complete Guide to Building a Machine Learning Model
    509
  7. The Cybercab Transformation: From Autonomous Taxi to Mobile Base Station
    531
  8. Harness vs. OpenClaw: Two Very Different "Agents"
    1,290
  9. What is Docker? Why is Docker also useful in a development environment?
    777
  10. Open-Source LLMs: The AI Revolution
    946
  11. Open Databases for Sex Crime Occurrences in the U.S.
    918
  12. Automatically copy text to the clipboard when dragging the mouse in the Cursor
    3,209
  13. The Future of Software Engineer - AI Engineering
    1,069
  14. Common Naming Format in Software Development
    2,892
  15. Types of Memory and Storage
    7,540
  16. How to access websites blocked by ESNI and ECH settings with Firefox!
    10,782
  17. Block unwanted URLs for comfortable web browsing with Chrome Addon - URL Blocker
    7,730
  18. Modern Web Indexing Technology - IndexNow
    7,509
  19. Key Differences in Gen Z/Alpha/Zalpha based on Upbringing and Life Experiences
    8,313
  20. Zalpha: A Global Trend, Not Just a Distant Concept
    7,942
  21. Zalpha Generation: A New Term for the Children of Gen Z and Millennials
    7,898
  22. The Generation Corona (+ Gen Z) is grappling with how to communicate and live alongside Gen Alpha
    8,262
  23. Starship, Super Heavy, Successful Ground Landing
    7,760
  24. Difference in HEAD and GET for HTTP Request - why HEAD Request could be used for DDoS Attack?
    10,939
  25. Understanding the Key Differences Between GIS and LBS: Purpose, Technology, and Applications
    7,403
  26. The Evolution and Applications of Geographic Information Systems: From Thematic Mapping to Efficient Data Analysis and Management
    7,302
  27. Japan's Current Status on Generative AI and Copyright: A Summary of Developments, Current Situation, and Key Issues
    7,890
  28. Quantum computer and qubit generation method
    7,404
Recently updated
  1. How to Check Your UIUC Graduation Progress Using DARS Audit
    549
  2. Michael Jackson's Billie Jean
    352
  3. Meet A2O Lite: Korea's Newest K-Pop Cuties with Addictively Catchy Melodies
    265
  4. Why You Can't Stop Watching Jack Bryan's Beatbox Gaming Shorts
    267
  5. Song So-hee: The Soulful Voice Touching Hearts Through Korean Music
    304
  6. Watch This Dazzling Dancer’s Mind-Blowing Moves
    320
  7. How to Activate or Waive Your UIUC Student Health Insurance
    490
  8. My life cuts at Las Vegas during Thanksgiving day holiday
    7,578
  9. Clean Python Environments: The Power of venv vs. Docker
    1,059
  10. UIUC 2026-2027 Academic Calendar
    1,911
  11. How to Build Llama 3 AI Apps with Python: Setup & User Prompts
    1,027
  12. Resume 2.0: Leveling Up for My First Software Gig
    2,803
  13. Not everyone will understand what this man just did
    2,314
  14. UIUC Dorm Guide: Find Your Perfect Fit !!
    1,800
  15. Unpacking IU's Shopper
    947
  16. Jackie Chan's Police Story: The Action Masterpiece
    824
  17. The IVE Story: Identity, 'I AM' Charts, and Influence
    1,148
  18. Tech Visionaries who graduated at UIUC - You are the Next Turn
    1,352
  19. My First Day at University of Illinois-Urvana Champaign
    1,349
  20. Sand, Sea, and a Splash of Fun at Newport Beach: A Family Adventure
    8,364
  21. Sun, Rocks, and Adventure: A Day at Joshua Tree National Park
    8,442
  22. Sipping the Stars: My Starbucks Adventure
    10,022
  23. Exciting explore at Sequoia National Park
    7,837
  24. My Life Shot at Death Valley
    1,985
  25. Ip Man fights with Muay Thai Master
    1,102
  26. Mad Clown - Don't Die
    1,220
  27. How to get Student Enrollment and Degree Verification at UIUC
    5,603
  28. LAX Thanksgiving Rush: A Joyful Reunion
    1,060
  29. ZO ZAZZ(조째즈) - Don`t you know (모르시나요) (PROD.ROCOBERRY)
    1,318
  30. FISHINGIRLS Unleashes Energetic EP 'Funiverse' Featuring Signature Track 'Fishing King'
    1,125
  31. 10CM - To Reach You (너에게 닿기를)
    1,310
  32. Feeling weak? Transform yourself at the UIUC ARC!
    1,717
  33. BOYNEXTDOOR - If I Say I Love You
    1,343
  34. G Dragon x Taeyang (Eyes Nose Lips, Power, Home Sweet Home, GOOD BOY) - LE GALA PIÈCES JAUNES 2025
    1,070
  35. Lie - Legend song by BIGBANG
    7,969
  36. Reimbursement after Vaccination at McKinley Health Center
    1,175
  37. Common Questions from UIUC school life in terms of CS Program
    1,300
  38. UIUC Immunization Compliance
    1,365
  39. LEE CHANHYUK's songs really resonate with my soul - Time Stop! Vivid LaLa Love, Eve, Endangered Love ...
    1,232
  40. LEE CHANHYUK - Endangered Love (멸종위기사랑)
    1,251
  41. Cupid (OT4/Twin Ver.) - LIVE IN STUDIO | FIFTY FIFTY (피프티피프티)
    1,030
  42. Common methods to improve coding skills
    1,121
  43. US National Holiday in 2026
    1,055
  44. BABYMONSTER “WE GO UP” Band LIVE [it's Live] K-POP live music show
    1,148
  45. BLACKPINK - ‘Shut Down’ Live at Coachella 2023
    1,030
  46. JENNIE - like JENNIE - One of Hot K-POP in 2025
    1,151
  47. BABYMONSTER(베이비몬스터) - DRIP + HOT SOURCE + SHEESH
    1,083
  48. In a life where I don't want to spill even a single sip of champagne - LEE CHANHYUK - Panorama(파노라마)
    1,121
  49. Countries with more males and females - what about UIUC?
    3,069
  50. Urban planning and growth from a historical perspective
    6,880