=== gemini --help === Usage: gemini [options] [command] Gemini CLI - Defaults to interactive mode. Use -p/--prompt for non-interactive (headless) mode. Commands: gemini mcp Manage MCP servers gemini extensions Manage Gemini CLI extensions. [aliases: extension] gemini skills Manage agent skills. [aliases: skill] gemini hooks Manage Gemini CLI hooks. [aliases: hook] gemini [query..] Launch Gemini CLI [default] Positionals: query Initial prompt. Runs in interactive mode by default; use -p/--prompt for non-interactive. Options: -d, --debug Run in debug mode (open debug console with F12) [boolean] [default: false] -m, --model Model [string] -p, --prompt Run in non-interactive (headless) mode with the given prompt. Appended to input on stdin (if any). [string] -i, --prompt-interactive Execute the provided prompt and continue in interactive mode [string] -w, --worktree Start Gemini in a new git worktree. If no name is provided, one is generated automatically. [string] -s, --sandbox Run in sandbox? [boolean] -y, --yolo Automatically accept all actions (aka YOLO mode, see https://www.youtube.com/watch?v=xvFZjo5PgG0 for more details)? [boolean] [default: false] --approval-mode Set the approval mode: default (prompt for approval), auto_edit (auto-approve edit tools), yolo (auto-approve all tools), plan (read-only mode) [string] [choices: "default", "auto_edit", "yolo", "plan"] --policy Additional policy files or directories to load (comma-separated or multiple --policy) [array] --admin-policy Additional admin policy files or directories to load (comma-separated or multiple --admin-policy) [array] --acp Starts the agent in ACP mode [boolean] --experimental-acp Starts the agent in ACP mode (deprecated, use --acp instead) [boolean] --allowed-mcp-server-names Allowed MCP server names [array] --allowed-tools [DEPRECATED: Use Policy Engine instead See https://geminicli.com/docs/core/policy-engine] Tools that are allowed to run without confirmation [array] -e, --extensions A list of extensions to use. If not provided, all extensions are used. [array] -l, --list-extensions List all available extensions and exit. [boolean] -r, --resume Resume a previous session. Use "latest" for most recent or index number (e.g. --resume 5) [string] --list-sessions List available sessions for the current project and exit. [boolean] --delete-session Delete a session by index number (use --list-sessions to see available sessions). [string] --include-directories Additional directories to include in the workspace (comma-separated or multiple --include-directories) [array] --screen-reader Enable screen reader mode for accessibility. [boolean] -o, --output-format The format of the CLI output. [string] [choices: "text", "json", "stream-json"] --raw-output Disable sanitization of model output (e.g. allow ANSI escape sequences). WARNING: This can be a security risk if the model output is untrusted. [boolean] --accept-raw-output-risk Suppress the security warning when using --raw-output. [boolean] -v, --version Show version number [boolean] -h, --help Show help [boolean] === codex exec --help === Run Codex non-interactively Usage: codex exec [OPTIONS] [PROMPT] codex exec [OPTIONS] [ARGS] Commands: resume Resume a previous session by id or pick the most recent with --last review Run a code review against the current repository help Print this message or the help of the given subcommand(s) Arguments: [PROMPT] Initial instructions for the agent. If not provided as an argument (or if `-` is used), instructions are read from stdin. If stdin is piped and a prompt is also provided, stdin is appended as a `` block Options: -c, --config Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`. Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed as TOML. If it fails to parse as TOML, the raw string is used as a literal. Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c shell_environment_policy.inherit=all` --enable Enable a feature (repeatable). Equivalent to `-c features.=true` --disable Disable a feature (repeatable). Equivalent to `-c features.=false` --strict-config Error out when config.toml contains fields that are not recognized by this version of Codex -i, --image ... Optional image(s) to attach to the initial prompt -m, --model Model the agent should use --oss Use open-source provider --local-provider Specify which local provider to use (lmstudio or ollama). If not specified with --oss, will use config default or show selection -p, --profile Layer DONE_EXIT_OK