The main problem we're facing is that the gemini command (the Gemini CLI) isn't being found by the system. Just like with moltbot/clawdbot, the gemini executable needs to be installed
and its bin directory needs to be in your shell's PATH.
Therefore, to generate the image, we need to solve the gemini-cli access problem first.
The steps are:
-
Install the Gemini CLI: If it's not already installed, the command is usually
npm install -g @google/gemini-cliorpnpm add -g @google/gemini-cli. -
Ensure gemini is in the PATH: After installation, the Node.js global packages directory (where gemini is installed) needs to be in your shell's PATH.
-
To do this, you can use the same steps we tried before:
-
Find the path with
npm prefix -g. -
Add
export PATH="$(npm prefix -g)/bin:$PATH"to your~/.bashrc(or~/.zshrc). -
Reload the shell with
source ~/.bashrc(orsource ~/.zshrc).
- Verify the installation: Try running
gemini --version. If it works, the gemini-cli is accessible.