google-github-actions / google-github-actions/run-gemini-cli

Use positional argument instead of deprecated --prompt flag

Open
#453 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/core area/prompts area/tools kind/bug kind/cicd priority/p1 status/gemini-cli-fix
Dominant language
TypeScript
Stars
2.1k
Forks
285
Avg merge
8h 8m
Merged PRs (30d)
1

Description

Summary

The Gemini CLI has deprecated the --prompt (-p) flag in favor of positional arguments. This action currently uses:

gemini --yolo --prompt "${PROMPT}" --output-format json

This produces a deprecation warning in CI logs:

The --prompt (-p) flag has been deprecated and will be removed in a future version. Please use a positional argument for your prompt. See gemini --help for more information.

Suggested Fix

Change the CLI invocation to use a positional argument:

gemini --yolo --output-format json "${PROMPT}"

Or pipe via stdin if multiline prompts are a concern:

echo "${PROMPT}" | gemini --yolo --output-format json

Impact

  • Currently: Warning noise in CI logs
  • Future: Will break when the flag is removed

Environment

  • Action version: v0.1.20
  • Gemini CLI: latest (as of 2026-01-29)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the action's Gemini CLI invocation that currently passes --prompt, then review how the prompt value is assembled and executed. Replace the deprecated flag with the supported invocation and verify that the action runs without the deprecation warning, including prompts containing multiple words or lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.