How to Run the Nightly Build of Gemini CLI
Gemini CLI publishes nightly builds on npm, providing a way to test the latest features and changes before they are officially released. However, these builds come with a word of caution. They are generated automatically every day at midnight UTC, directly from the main branch. This means you might encounter bugs.
This guide shows how to to run the latest nightly build while keeping your installed version of Gemini CLI untouched.
Running the Nightly Build with npx
You can use npx
to run the nightly build. This command downloads and runs the
most recent nightly build without interfering with an existing global
installation of Gemini CLI. Use the following command to run the latest nightly:
npx @google/gemini-cli@nightly
Installing the Stable Version Globally
If you haven't already, you might also want to install the stable version of
Gemini CLI globally. This will give you a gemini
command for your day-to-day
use. Use the following command to install it:
npm install -g @google/gemini-cli
You now have two versions you can use: the stable gemini
command for regular
tasks, and the npx @google/gemini-cli@nightly
command to access the latest,
untested features from the nightly build.
* * *