Vertex CLI
Vertex CLI is a powerful command-line tool that leverages Large Language Models (LLMs) to answer queries and debug faster. With just a few commands, you can set up and start using advanced features like querying LLMs and generating insights.
Complete Documentation: Vertex CLI Docs
Installation and Setup
Follow these steps to get started:
Install Vertex-CLI from TestPyPI
To install Vertex-CLI
from TestPyPI, run:
After installation, initialize the CLI configuration file:
This will create the models_api.json
under ~/.config/ai_model_manager/
with default entries.
Install the Editable Version (For Development)
If you want to modify or contribute to Vertex CLI, install it in editable mode:
- Clone the repository:
- Install dependencies and set up the project:
- Initialize the CLI configuration:
Configuration
You can configure the CLI to use a specific LLM model by adding or updating your API key:
Replace gemini-1.5-flash
with your preferred model name and YOUR_MODEL_API_KEY
with your API key.
To list all configured models:
To remove a model:
To select a model as the default:
Usage
Once installed and configured, you can start chatting or debugging commands:
Quick Command Reference
- Convert an array to a NumPy array
-
Manage API keys for models
-
Add or update a model’s API key:
* Remove a model: * List all saved models and their API keys: * Select a model to use: * Show available commands/help:
Debugging (Beta Feature)
- Debug the last 3 commands (default):
- Debug a specific number of recent commands (e.g., last 5):
- Add a custom message to explain your assumptions or observations:
🔗 Complete CLI Documentation: CLI Commands