在 Gemini CLI 中尝试 Gemini 3 Pro 的 5 件事
Source: Google Developers Blog
Gemini 3 Pro 现已在 Gemini CLI 中可用。最智能的模型直接集成到 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 并将 Preview features 切换为 true。Gemini CLI 将默认使用 Gemini 3 Pro。
在 Gemini CLI 中使用 Gemini 3 Pro 的 5 种实用方式
在终端中构建任何东西,提升代理式编码
Gemini 3 Pro 在编码方面表现出色,因为它能够综合不同的信息——文本、图像和代码——并遵循复杂、富有创意的指令。它理解您想法背后的意图,让您能够在一步之内从粗略概念转化为可运行的起点。
生成可直接部署的 3D 图形应用
Gemini 3 Pro 的代理式编码能力让您可以同时提供创意简报和技术规范。它能够制定详细的执行计划并生成完整的可运行网页项目脚手架。
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 (anchored to seabed), 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 top of the deck (ensure vertical alignment prevents clipping into the concrete). Each car features 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: At night, activate city lights, car headlights, ship navigation lights, tower beacons, street lights.
Tech & Controls:
- Core: Must output only single HTML file `golden_gate_bridge.html` to be run in a blank Chrome tab. Import Three.js/Addons via CDN map.
- `three` (Core library) via CDN (ES Modules).
- `three/examples/jsm/...` modules via Import Map.
- No build step (Vite/Webpack). Pure HTML/JS.
- UI: Visually appealing 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).
将视觉创意转化为可运行的应用
您可以将 UI 草图的图片拖放到终端中。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 命令
使用 Gemini CLI,您可以用普通英文描述需求,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.