We will follow https://semver.org/ as closely as possible but will call out when or if we have to deviate from it. Our weekly releases will be minor version increments and any bug or hotfixes btween releases will go out as patch versions on the most recent release.
New preview releases will be published each week at UTC 2359 on Tuesdays. These releases will not have been fully vetted and may contain regressions or other outstanding issues. Please help us test and install with preview
tag.
npm install -g @google/gemini-cli@preview
latest
tag.npm install -g @google/gemini-cli@latest
nightly
tag.npm install -g @google/gemini-cli@nightly
Where x.y.z
is the next version to be released. In most all cases for the weekly release this will be an increment on y
, aka minor version update. Major version updates x
will need broader coordination and communication. For patches z
see below. When possible we will do our best to adher to https://semver.org/
Our release cadence is new releases are sent to a preview channel for a week and then promoted to stable after a week. Version numbers will follow SemVer with weekly releases incrementing the minor version. Patches and bug fixes to both preview and stable releases will increment the patch version.
Each night at UTC 0000 we will auto deploy a nightly release from main
. This will be a version of the next production release, x.y.z, with the nightly tag.
Each Tuesday at UTC 2359 we will auto deploy a preview release of the next production release x.y.z.
release/vx.y.z-preview.n
@preview
will get this release as wellAfter one week (On the following Tuesday) with all signals a go, we will manually release at 2000 UTC via the current on-call person.
release/vx.y.z-preview.n
If a critical bug needs to be fixed before the next scheduled release, follow this process to create a patch.
First, create a new branch for your fix. The source for this branch depends on whether you are patching a stable or a preview release.
For a stable release patch:
Create a branch from the Git tag of the version you need to patch. Tag names are formatted as vx.y.z
.
# Example: Create a hotfix branch for v0.2.0
git checkout v0.2.0 -b hotfix/issue-123-fix-for-v0.2.0
For a preview release patch:
Create a branch from the existing preview release branch, which is formatted as release/vx.y.z-preview.n
.
# Example: Create a hotfix branch for a preview release
git checkout release/v0.2.0-preview.0 && git checkout -b hotfix/issue-456-fix-for-preview
In your new hotfix branch, either create a new commit with the fix or cherry-pick an existing commit from the main
branch. Merge your changes into the source of the hotfix branch (ex. https://github.com/google-gemini/gemini-cli/pull/6850).
Follow the manual release process using the “Release” GitHub Actions workflow.
v0.2.0
-> v0.2.1
). For preview patches, increment the preview number (e.g., v0.2.0-preview.0
-> v0.2.0-preview.1
).release/v0.2.0-preview.0
)After the hotfix is released, merge the changes back to the appropriate branch.
For a stable release hotfix:
Open a pull request to merge the release branch (e.g., release/0.2.1
) back into main
. This keeps the version number in main
up to date.
For a preview release hotfix:
Open a pull request to merge the new preview release branch (e.g., release/v0.2.0-preview.1
) back into the existing preview release branch (release/v0.2.0-preview.0
) (ex. https://github.com/google-gemini/gemini-cli/pull/6868)
Date | Stable UTC 2000 | Preview UTC 2359 |
Aug 19th, 2025 | N/A | 0.2.0-preview.0 |
Aug 26th, 2025 | 0.2.0 | 0.3.0-preview.0 |
Sep 2nd, 2025 | 0.3.0 | 0.4.0-preview.0 |
Sep 9th, 2025 | 0.4.0 | 0.5.0-preview.0 |
Sep 16th, 2025 | 0.5.0 | 0.6.0-preview.0 |
Sep 23rd, 2025 | 0.6.0 | 0.7.0-preview.0 |
Releases are managed through the release.yml GitHub Actions workflow. To perform a manual release for a patch or hotfix:
v0.2.1
).main
).true
to test the workflow without publishing, or set to false
to perform a live release.Each release, wether automated or manual performs the following steps:
main
branch.preflight
checks and integration tests.release/${VERSION}
.v${VERSION}
.If any step in the workflow fails, it will automatically create a new issue in the repository with the labels bug
and release-failure
. The issue will contain a link to the failed workflow run for easy debugging.
We also run a Google cloud build called release-docker.yml. Which publishes the sandbox docker to match your release. This will also be moved to GH and combined with the main release file once service account permissions are sorted out.
After pushing a new release smoke testing should be performed to ensure that the packages are working as expected. This can be done by installing the packages locally and running a set of tests to ensure that they are functioning correctly.
npx -y @google/gemini-cli@latest --version
to validate the push worked as expected if you were not doing a rc or dev tagnpx -y @google/gemini-cli@<release tag> --version
to validate the tag pushed appropriatelynpm uninstall @google/gemini-cli && npm uninstall -g @google/gemini-cli && npm cache clean --force && npm install @google/gemini-cli@<version>
If you need to test the release process without actually publishing to NPM or creating a public GitHub release, you can trigger the workflow manually from the GitHub UI.
dry_run
option checked (true
).This will run the entire release process but will skip the npm publish
and gh release create
steps. You can inspect the workflow logs to ensure everything is working as expected.
It is crucial to test any changes to the packaging and publishing process locally before committing them. This ensures that the packages will be published correctly and that they will work as expected when installed by a user.
To validate your changes, you can perform a dry run of the publishing process. This will simulate the publishing process without actually publishing the packages to the npm registry.
npm_package_version=9.9.9 SANDBOX_IMAGE_REGISTRY="registry" SANDBOX_IMAGE_NAME="thename" npm run publish:npm --dry-run
This command will do the following:
You can then inspect the generated tarballs to ensure that they contain the correct files and that the package.json
files have been updated correctly. The tarballs will be created in the root of each package’s directory (e.g., packages/cli/google-gemini-cli-0.1.6.tgz
).
By performing a dry run, you can be confident that your changes to the packaging process are correct and that the packages will be published successfully.
The main goal of the release process is to take the source code from the packages/ directory, build it, and assemble a
clean, self-contained package in a temporary bundle
directory at the root of the project. This bundle
directory is what
actually gets published to NPM.
Here are the key stages:
Stage 1: Pre-Release Sanity Checks and Versioning
Stage 2: Building the Source Code
Stage 3: Assembling the Final Publishable Package
This is the most critical stage where files are moved and transformed into their final state for publishing. A temporary
bundle
folder is created at the project root to house the final package contents.
package.json
is Transformed:
bundle
/ directory.bundle
/package.jsonbundle
/gemini.js (or a
similar name).bundle
directory.bundle
/README.mdbundle
/LICENSEbundle
/Stage 4: Publishing to NPM
bundle
directory.bundle
directory, only the files we carefully assembled in Stage 3 are uploaded
to the NPM registry. This prevents any source code, test files, or development configurations from being accidentally
published, resulting in a clean and minimal package for users.Summary of File Flow
graph TD
subgraph "Source Files"
A["packages/core/src/*.ts<br/>packages/cli/src/*.ts"]
B["packages/cli/package.json"]
C["README.md<br/>LICENSE<br/>packages/cli/src/utils/*.sb"]
end
subgraph "Process"
D(Build)
E(Transform)
F(Assemble)
G(Publish)
end
subgraph "Artifacts"
H["Bundled JS"]
I["Final package.json"]
J["bundle/"]
end
subgraph "Destination"
K["NPM Registry"]
end
A --> D --> H
B --> E --> I
C --> F
H --> F
I --> F
F --> J
J --> G --> K
This process ensures that the final published artifact is a purpose-built, clean, and efficient representation of the project, rather than a direct copy of the development workspace.