Skip to content

Conversation

@sempi
Copy link

@sempi sempi commented Jan 29, 2026

Summary

The Gemini CLI has deprecated the --prompt (-p) flag and recommends using positional arguments instead. This change updates the CLI invocation to pass the prompt as a positional argument, eliminating the deprecation warning:

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

Changes

  • Update gemini CLI invocations to use positional argument instead of --prompt flag
  • Update input description to reflect positional argument usage
  • Regenerate README.md documentation via npm run docs

Before

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

After

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

Fixes #453

@sempi sempi requested review from a team as code owners January 29, 2026 19:40
@google-cla
Copy link

google-cla bot commented Jan 29, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

The Gemini CLI has deprecated the --prompt (-p) flag and recommends
using positional arguments instead. This change updates the CLI
invocation to pass the prompt as a positional argument, eliminating
the deprecation warning:

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

Changes:
- Update gemini CLI invocations to use positional argument
- Update input description to reflect positional argument usage
- Regenerate README.md documentation

Fixes google-github-actions#453
@sempi sempi force-pushed the fix/use-positional-prompt-argument branch from a60297a to 9c2e454 Compare January 29, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Use positional argument instead of deprecated --prompt flag

1 participant