KosmoKrator

ai

Google Gemini CLI for CI

Use the Google Gemini CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API key auth

Google Gemini CLI for CI

Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.

Use this shape when a pipeline needs to read or update an external service. The Google Gemini CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Google Gemini CLI for CI
kosmokrator integrations:configure google-gemini --set api_key="$GOOGLE_GEMINI_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call google-gemini.gemini_list_models '{"pageSize":1,"pageToken":"example_pageToken"}' --json

Discovery Before Execution

Agents and scripts can inspect Google Gemini docs and schemas before choosing a function.

kosmo integrations:docs google-gemini --json
kosmo integrations:docs google-gemini.gemini_list_models --json
kosmo integrations:schema google-gemini.gemini_list_models --json
kosmo integrations:search "Google Gemini" --json
kosmo integrations:list --json

Useful Google Gemini CLI Functions

FunctionTypeParametersDescription
google-gemini.gemini_list_models Read pageSize, pageToken List available Gemini AI models. Returns model names, display names, supported generation methods, and other metadata.
google-gemini.gemini_get_model Read id Get detailed information about a specific Gemini model, including supported generation methods, input/output token limits, and capabilities.
google-gemini.gemini_generate_content Write id, contents, temperature, topP, maxOutputTokens Generate content using a Gemini model. Send text prompts and receive AI-generated responses. Supports configurable generation parameters like temperature, topP, and maxOutputTokens.
google-gemini.gemini_list_files Read pageSize, pageToken List files uploaded to the Gemini File API. Returns file names, MIME types, sizes, and states.
google-gemini.gemini_get_file Read id Get metadata for an uploaded file in the Gemini File API, including its name, display name, MIME type, size, and processing state.
google-gemini.gemini_list_tuned_models Read pageSize, pageToken List tuned (fine-tuned) Gemini models in your project. Returns model names, base models, tuning tasks, and display names.
google-gemini.gemini_get_current_user Read none Get information about the currently authenticated Google user, including permissions and account details.

Automation Notes

Related Google Gemini CLI Pages