在 Gemini CLI 中尝试 Gemini 3 Pro 的 5 件事

发布: (2025年12月1日 GMT+8 07:25)
7 min read

Source: Google Developers Blog

Nov 18, 2025

Gemini 3 Pro 已在 Gemini CLI 中可用

我们已将 Gemini 3 Pro博客文章),我们最智能的模型,直接集成到 Gemini CLI 中,以在终端中释放全新的性能和生产力水平。这一强大的组合提供了最先进的推理能力,以执行更好的命令,增强了通过代理式编码进行复杂工程工作的支持,并通过高级工具使用实现更智能、更个性化的工作流。

我们正逐步推出访问权限,以确保体验保持快速且可靠。

  • Gemini 3 Pro 现已在 Gemini CLI 中对 Google AI Ultra计划详情)订阅者开放(Google AI Ultra for Business 访问正在路线图上),以及持有付费 Gemini API 密钥 的用户。
  • 对于 Gemini Code Assist Enterprise 用户,访问即将推出。
  • 所有其他用户(Google AI Pro、Gemini Code Assist Standard 和免费层用户)可以在此等待名单中登记,待可用时获取访问权限。

您也可以通过关注此GitHub 讨论来跟踪我们的 rollout 进度。

开始在 Gemini CLI 中使用 Gemini 3 Pro

如果您是 Google AI Ultra 订阅者或拥有付费 Gemini API 密钥,请立即升级 Gemini CLI 版本至 0.16.x,即可开始使用:

npm install -g @google/gemini-cli@latest

确认版本后,运行 /settings 并将 预览功能 切换为 true。Gemini CLI 将默认使用 Gemini 3 Pro。

在 Gemini CLI 中利用 Gemini 3 Pro 的 5 种实用方式

在终端中通过改进的代理式编码构建任何东西

Gemini 3 Pro 在编码方面表现出色,因为它能够综合文本、图像和代码,并遵循复杂、富有创意的指令。它理解您想法背后的意图,让您能够在一步之内从粗略概念转化为可运行的起始点。

生成可直接部署的 3D 图形应用
Gemini 3 Pro 可以接受创意简报和技术规格,生成执行计划,并为可运行的 Web 项目生成完整的脚手架。

示例提示:

Objective: Build a visually stunning, photorealistic 3D Voxel simulation of the Golden Gate Bridge using Three.js, prioritizing quality and complex visuals (no simple blocks), atmospheric depth and 60FPS performance.

Visuals & Atmosphere:
- Lighting: Slider (0‑24h) controlling sun position, light intensity, sky color, and fog color.
- Fog: Volumetric‑style fog using sprite particles that drift and bob. Slider 0‑100. 0 = True Zero (Crystal Clear). 100 = Dense but realistic (not whiteout).
- Water: Custom GLSL shader with waves, specular reflections, and manual distance‑based fog blending (exp2) for seamless horizon integration.
- Post‑Processing: ACESFilmic Tone Mapping and UnrealBloom (optimized for glowing lights at night).

Scene Details:
- Bridge: Art Deco towers with concrete piers, main span catenary cables, and suspenders.
- Terrain: Low‑poly Marin Headlands and SF Peninsula.
- Skyline: Procedural city blocks on the SF side.
- Traffic: Up to 400 cars using `InstancedMesh`, positioned accurately on the deck (prevent clipping). Cars have emissive headlights (white) and taillights (red).
- Ships: Procedural cargo ships with hull, containers, and functional navigation lights (Port/Starboard/Mast/Cabin) moving along the water.
- Nature: Animated flocking birds.
- Night Mode: Activate city lights, car headlights, ship navigation lights, tower beacons, street lights.

Tech & Controls:
- Core: Output a single HTML file `golden_gate_bridge.html` runnable in a blank Chrome tab. Import Three.js/Addons via CDN map.
  - `three` (Core) via CDN (ES Modules).
  - `three/examples/jsm/...` modules via Import Map.
  - No build step (Vite/Webpack). Pure HTML/JS.
- UI: Sliders for Time (0‑24h), Fog Density (0‑100%), Traffic Density (0‑100%), and Camera Zoom.
- Optimization: `InstancedMesh` for all repetitive elements (cars, lights, birds).

将视觉创意转化为可运行的应用

将草图拖拽(拖放图像文件)到终端中。Gemini 3 Pro 的多模态理解会分析图稿,识别 UI 组件,并生成对应的 HTML、CSS 与 JavaScript。

示例提示:

Create a UI for "Project Constellation," an internal brand intelligence tool prototype that shows a customer acquisition pipeline. The aesthetic is an ultra‑creative, futuristic dark‑mode nebula. Luminous, iridescent threads representing customer journeys weave through semi‑transparent glass pillars. A sleek, floating data card with Tailwind CSS precision materializes when hovering over a pillar. I've prepared a sketch for you to work from: @sketch.png.

改进日常工作

对日常工作流的细微改进——重构、调试、基础设施管理——会转化为真实的生产力提升。Gemini 3 Pro 的推理能够精准处理细致且多步骤的指令。

使用自然语言生成复杂的 Shell 命令

At some point I lost the commit that set my default theme to dark.
Find it for me with git bisect and return the hash to me.

从代码生成准确的文档

"This is an application that does not have any documentation and we do not have a technical writer. Before you begin, review all of the code. Then make me a user documentation. This document should only explain user‑facing features, but make sure to explain every single feature such as usage of the app, command line options, authentication options, built‑in tools, and all other user‑facing features. For certain features such as MCP or extensions, also explain the topic and concept so that the user has a better understanding. Since this is an open source project, provide an architectural overview of how the code is laid out, a summary of each component, and how they can contribute to the open‑source project. The document should be organized and formatted so that it is easy to read and find. Do not make it a single html page. Make sure to add a search feature."

调试 Cloud Run 实时服务的性能问题

Users are reporting that the "Save Changes" button is slow, investigate the 'tech-stack' service

今日即可学习更多

这些示例仅是起点。真正的潜力不在于运行这些特定指令,而在于 Gemini 3 Pro 如何适应您的独特挑战——无论是优化日常 Shell 命令、处理大型工程任务,还是构建符合团队工具的个性化工作流。Gemini 3 Pro 将命令行转变为能够理解上下文的智能伙伴。

访问 Gemini CLI 网站 并在社交平台上使用 #GeminiCLI 分享您的案例。我们迫不及待想看到您构建的作品。

Back to Blog

相关文章

阅读更多 »

宣布 Data Commons Gemini CLI 扩展

自从我们在十月初推出 Gemini CLI 扩展框架以来,我们已经看到 Google 自有和第三方贡献的扩展在 op... 中呈爆炸式增长。