← Back to Blog

Post 5 • Spring 2026

Getting Started: Building with Gemini CLI & GitHub

You don't need to be a senior programmer to build amazing things anymore. The era of staring at blank text editors trying to memorize syntax is over. Today, you are a director, an orchestrator. All you need is an idea, an AI assistant, and the willingness to iterate.

This guide will show you exactly how to replicate our workflow to build your own applications using Gemini CLI.

Step 1: Installing Gemini CLI

First, you need to install the tool. Open your computer's terminal (or command prompt) and run this command (assuming you have Node.js installed):

npm install -g @google/gemini-cli

Once installed, you can start your AI assistant by simply typing gemini in your terminal.

Step 2: Authenticating and GitHub

To let the AI help you save your work to the internet, you'll want to use GitHub. You can literally ask Gemini CLI to help you set this up!

Type this into your Gemini CLI prompt:

"I want to start a new project. Can you help me initialize a git repository and connect it to my GitHub account? Walk me through the steps."

The AI will guide you through the process, and in many cases, can execute the necessary terminal commands for you safely.

Step 3: The Secret to Prompting (Iteration)

The biggest mistake beginners make is asking the AI to "build a whole game" in one sentence. Gemini CLI is not magic; it's a collaborator.

The Golden Loop

  1. Command: "Create a simple index.html with a black background and a red square in the middle."
  2. Review: Open the file in your browser. Does it look right?
  3. Iterate: "That looks good. Now, make the red square move to the right when I press the 'D' key."

What If I Get An Error?

Errors are normal. They are just feedback. If your code doesn't work, or if your terminal throws a massive wall of red text, do not panic.

Pro Tip: Copy the entire error message, paste it directly into Gemini CLI, and ask: "I got this error when I tried to run the game. How do I fix it?" The AI will almost always know exactly what went wrong and fix the code for you.

Remember, the tool (Gemini CLI) is just the vehicle. Your ability to prompt, review, and iterate is what actually builds the game.