Download projects/gemini-cli/packages/cli/src/utils/version.ts from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/6efbdeeec258797a51a0d99a6a0caff58f42dfd2/projects/gemini-cli/packages/cli/src/utils/version.ts
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai@6efbdeeec258797a51a0d99a6a0caff58f42dfd2/projects/gemini-cli/packages/cli/src/utils/version.ts
-
curl -L -o version.ts https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/6efbdeeec258797a51a0d99a6a0caff58f42dfd2/projects/gemini-cli/packages/cli/src/utils/version.ts
308 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import { getPackageJson } from './package.js'; | |
| export async function getCliVersion(): Promise<string> { | |
| const pkgJson = await getPackageJson(); | |
| return process.env['CLI_VERSION'] || pkgJson?.version || 'unknown'; | |
| } | |