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
Follow these steps to get started:
To install Vertex-CLI from TestPyPI, run:
pip install -i https://test.pypi.org/simple/ Vertex-CLIAfter installation, initialize the CLI configuration file:
tex-initThis will create the models_api.json under ~/.config/ai_model_manager/ with default entries.
If you want to modify or contribute to Vertex CLI, install it in editable mode:
-
Clone the repository:
git clone https://github.com/Prtm2110/Vertex-CLI cd Vertex-CLI -
Install dependencies and set up the project:
pip install -e . -
Initialize the CLI:
tex-init
You can configure the CLI to use a specific LLM model by adding or updating your API key:
tex config gemini-1.5-flash YOUR_MODEL_API_KEYReplace gemini-1.5-flash with your preferred model name and YOUR_MODEL_API_KEY with your API key.
To list all configured models:
tex listTo remove a model:
tex remove gemini-1.5-creativeTo select a model as the default:
tex select gemini-1.5-flashOnce installed and configured, you can start chatting or debugging commands:
You can either use the chat subcommand or omit it entirely:
# Explicit subcommand
tex chat "Tell me about the solar system"
# Shortcut form (no subcommand)
tex "Tell me about the solar system"Replace the quoted string with any query you'd like.
🔗 Complete CLI Documentation: CLI Commands
Debugging is currently in beta but can analyze recent shell commands to identify issues.
tex debugtex debug -n 5tex debug -n 5 -p "Explain why \`git commit\` failed"Contributions are welcome! Follow these steps to contribute:
-
Fork the repository
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m "Add your feature description" -
Push your branch:
git push origin feature/your-feature-name
-
Open a pull request
🔗 Contributor Guide: How to Contribute
This project is licensed under the MIT License. See the LICENSE file for more details.
If you encounter any issues, open an issue on the GitHub repository.
