mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: prepublish changes to package names (#1420)
This commit is contained in:
@@ -16,7 +16,7 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
|
||||
|
||||
```bash
|
||||
# Install the CLI globally
|
||||
npm install -g @gemini-cli/cli
|
||||
npm install -g @google/gemini-cli
|
||||
|
||||
# Now you can run the CLI from anywhere
|
||||
gemini
|
||||
@@ -25,7 +25,7 @@ This is the recommended way for end-users to install Gemini CLI. It involves dow
|
||||
- **NPX execution:**
|
||||
```bash
|
||||
# Execute the latest version from NPM without a global install
|
||||
npx @gemini-cli/cli
|
||||
npx @google/gemini-cli
|
||||
```
|
||||
|
||||
---
|
||||
@@ -88,8 +88,8 @@ The execution methods described above are made possible by the following archite
|
||||
|
||||
Gemini CLI project is a monorepo that publishes two core packages to the NPM registry:
|
||||
|
||||
- `@gemini-cli/core`: The backend, handling logic and tool execution.
|
||||
- `@gemini-cli/cli`: The user-facing frontend.
|
||||
- `@google/gemini-cli-core`: The backend, handling logic and tool execution.
|
||||
- `@google/gemini-cli`: The user-facing frontend.
|
||||
|
||||
These packages are used when performing the standard installation and when running Gemini CLI from the source.
|
||||
|
||||
@@ -97,7 +97,7 @@ These packages are used when performing the standard installation and when runni
|
||||
|
||||
There are two distinct build processes used, depending on the distribution channel:
|
||||
|
||||
- **NPM publication:** For publishing to the NPM registry, the TypeScript source code in `@gemini-cli/core` and `@gemini-cli/cli` is transpiled into standard JavaScript using the TypeScript Compiler (`tsc`). The resulting `dist/` directory is what gets published in the NPM package. This is a standard approach for TypeScript libraries.
|
||||
- **NPM publication:** For publishing to the NPM registry, the TypeScript source code in `@google/gemini-cli-core` and `@google/gemini-cli` is transpiled into standard JavaScript using the TypeScript Compiler (`tsc`). The resulting `dist/` directory is what gets published in the NPM package. This is a standard approach for TypeScript libraries.
|
||||
|
||||
- **GitHub `npx` execution:** When running the latest version of Gemini CLI directly from GitHub, a different process is triggered by the `prepare` script in `package.json`. This script uses `esbuild` to bundle the entire application and its dependencies into a single, self-contained JavaScript file. This bundle is created on-the-fly on the user's machine and is not checked into the repository.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ This guide provides solutions to common issues and debugging tips.
|
||||
|
||||
- **Q: How do I update Gemini CLI to the latest version?**
|
||||
|
||||
- A: If installed globally via npm, update Gemini CLI using the command `npm install -g @gemini-cli/cli@latest`. If run from source, pull the latest changes from the repository and rebuild using `npm run build`.
|
||||
- A: If installed globally via npm, update Gemini CLI using the command `npm install -g @google/gemini-cli@latest`. If run from source, pull the latest changes from the repository and rebuild using `npm run build`.
|
||||
|
||||
- **Q: Where are Gemini CLI configuration files stored?**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user