Resource mentioned in this lesson: realpython.com/bonus/how-to-use-gemini-cli-code/
Testing Your First Prompt
00:00 Alright, and now it’s time to start working with Gemini and test your first prompt. Make sure that you’re in the project directory with the to-do list. If you haven’t downloaded it yet, you can do so by clicking the supporting materials link below this video, and download the to-do list because that is code that we’ll use to work with in this video course.
00:23
And once you’re in your todolist project folder, you type gemini to start Gemini.
00:31
You can verify that you’re actually in the right folder if you have a look at the line below the prompt. For me, it’s project/gemini-todolist.
00:41
Every time you run the gemini command in a new folder, Gemini CLI first analyzes the project structure, indexes the files for context, and afterwards you’ll see the welcome message and the prompt.
00:53 So depending on the size of your project, the first start might take a while. Okay, so let’s start with a simple question to Gemini first, and that is a good question to verify the connection and also to get the first overview of the project.
01:10 Let’s say you don’t know anything about the project. So a good question could be, what programming language is this project written in?
01:23
Once you hit Enter, Gemini replies to your question rather quickly and says that “This project appears to be written in Python, indicated by the .py file extension and the pyproject.toml file”.
01:35 That’s the correct answer. And this also confirms that the Gemini CLI successfully communicates with Google’s AI model and can analyze your project files.
01:45 Okay, great. So that means you are now ready to give Gemini CLI a more challenging task.
Become a Member to join the conversation.
