Skills2026年3月29日·1 分钟阅读

Gemini CLI Extension: Vertex AI — Model Management

Gemini CLI extension for Vertex AI. Deploy models, manage endpoints, run predictions, and monitor ML pipelines.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Community
入口
Gemini CLI Extension: Vertex
安全暂存命令
npx -y tokrepo@latest install 0d5e4914-8ade-4a18-a9dd-3a4a8318b6da --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Gemini CLI extension that adds Vertex AI model deployment, endpoint management, and prediction capabilities to your terminal.
§01

What it is

The Vertex AI extension for Gemini CLI integrates Google Cloud Vertex AI capabilities directly into the Gemini command-line tool. Once installed, it enables model deployment, endpoint management, prediction execution, and ML pipeline monitoring without leaving your terminal session.

ML engineers and platform teams working with Google Cloud will find this extension useful for managing Vertex AI resources alongside their regular development workflow. It works within the Gemini CLI agent context, meaning you can describe tasks in natural language and the agent handles the API calls.

§02

How it saves time or tokens

Managing Vertex AI resources typically requires switching between the Google Cloud Console, gcloud CLI, and custom scripts. This extension consolidates those operations into the Gemini CLI agent, where you describe what you need and the agent executes the correct API calls. This reduces context switching and eliminates the need to memorize gcloud vertex-ai subcommand syntax.

§03

How to use

  1. Install the Gemini CLI if you have not already:
npm install -g @anthropic-ai/gemini-cli
  1. Install the Vertex AI extension:
gemini extensions install vertex
  1. Start a Gemini CLI session and use the extension:
gemini
> Use the vertex extension to list my deployed models
> Deploy model gs://my-bucket/model to an endpoint with 2 replicas
§04

Example

# Install the extension
gemini extensions install vertex

# In a Gemini CLI session:
gemini> List all endpoints in project my-project region us-central1
gemini> Deploy the model at gs://models/bert-v2 to a new endpoint
gemini> Run a prediction on endpoint xyz with input data from test.json
gemini> Show the status of my training pipeline job-12345
§05

Related on TokRepo

§06

Common pitfalls

  • The extension requires a valid Google Cloud project with Vertex AI API enabled. Ensure your gcloud auth is configured before using the extension.
  • Model deployment can take several minutes. The extension shows status updates, but do not cancel the session mid-deployment or you may leave orphaned resources.
  • Prediction requests require the correct input schema matching your model. Check the model signature before sending test inputs to avoid cryptic error responses.

常见问题

What is the Gemini CLI Vertex AI extension?+

It is an official extension for the Gemini CLI that adds Vertex AI capabilities. Once installed, the Gemini agent can deploy models, manage endpoints, run predictions, and monitor ML training pipelines on Google Cloud Vertex AI through natural language commands in your terminal.

How do I install the Vertex AI extension?+

Run 'gemini extensions install vertex' after installing the Gemini CLI. The extension downloads and registers automatically. You need a Google Cloud account with Vertex AI API enabled and valid authentication configured via gcloud auth.

Can this extension manage training pipelines?+

Yes. The extension can start, monitor, and check the status of Vertex AI training pipeline jobs. You can describe training configurations in natural language and the Gemini agent translates them into the appropriate Vertex AI API calls.

Does the extension work with custom models or only pre-trained ones?+

It works with both. You can deploy custom models stored in Google Cloud Storage buckets as well as models from the Vertex AI Model Garden. The extension handles endpoint creation, model upload, and deployment configuration for any model type supported by Vertex AI.

What authentication does the extension require?+

The extension uses your existing Google Cloud authentication. Run gcloud auth application-default login to set up credentials. You also need the Vertex AI API enabled in your Google Cloud project and appropriate IAM permissions for model and endpoint management.

引用来源 (3)
🙏

来源与感谢

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/vertex Part of Gemini CLI — ⭐ 99,400+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产