<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged googlecloudplatform</title>
<link>https://coderlegion.com/tag/googlecloudplatform</link>
<description>Powered by Question2Answer</description>
<item>
<title>Customizing Azure Cloud Shell for Cross Cloud Development</title>
<link>https://coderlegion.com/14159/customizing-azure-cloud-shell-for-cross-cloud-development</link>
<description>&lt;hr&gt;
&lt;p&gt;title: Customizing Azure Cloud Shell for Cross Cloud Development&lt;br&gt;
published: true&lt;br&gt;
series: Azure&lt;br&gt;
date: 2026-03-11 15:33:50 UTC&lt;br&gt;
tags: googlecloudplatform,linux,azurecloudshell,geminicli&lt;/p&gt;
&lt;h3 id=&quot;canonical-url-https-xbill999-medium-com-customizing-azure-cloud-shell-for-cross-cloud-development-5af464de14ab&quot;&gt;canonical_url: &lt;a rel=&quot;nofollow&quot; href=&quot;https://xbill999.medium.com/customizing-azure-cloud-shell-for-cross-cloud-development-5af464de14ab&quot;&gt;https://xbill999.medium.com/customizing-azure-cloud-shell-for-cross-cloud-development-5af464de14ab&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This article covers installing and Running Gemini CLI cross-cloud. The Azure Cloud Shell provides a basic Linux environment that can support running Gemini CLI.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*IX3Bj1oC17mjEzXdmok5Fg.jpeg&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h5 id=&quot;what-is-gemini-cli-&quot;&gt;What is Gemini CLI?&lt;/h5&gt;
&lt;p&gt;The Gemini CLI is an open-source, terminal-based AI agent from Google that allows developers to interact directly with Gemini models, such as Gemini 2.5 Pro, for coding, content creation, and workflow automation. It supports file operations, shell commands, and connects to external tools via the Model Context Protocol (MCP).&lt;/p&gt;
&lt;p&gt;The full details on Gemini CLI are available here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://geminicli.com/&quot;&gt;Build, debug &amp;amp; deploy with AI&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;azure-cloud-shell&quot;&gt;Azure Cloud Shell&lt;/h5&gt;
&lt;p&gt;Azure Cloud Shell is a browser-based, authenticated terminal for managing Azure resources, accessible directly through the Azure portal, shell.azure.com, or the mobile app. It provides a preconfigured environment with Bash or PowerShell, eliminating local installation of tools. It runs on a temporary, secure, Linux-based host.&lt;/p&gt;
&lt;p&gt;The full background information on the Cloud Shell is here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://azure.microsoft.com/en-us/get-started/azure-portal/cloud-shell&quot;&gt;https://azure.microsoft.com/en-us/get-started/azure-portal/cloud-shell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;More information is available here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://learn.microsoft.com/en-us/azure/cloud-shell/get-started/classic?wt.mc_id=fulltextsearch_inproduct_azure-portal-global-search&amp;amp;tabs=azurecli&quot;&gt;Get started with Azure Cloud Shell&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;why-would-i-want-gemini-cli-on-azure-isn-t-that-a-google-thing-&quot;&gt;Why would I want Gemini CLI on Azure? Isn’t that a Google Thing?&lt;/h5&gt;
&lt;p&gt;Yes- Gemini CLI leverages the Google Cloud console and Gemini models but it is also open source and platform agnostic. Many applications are already cross-cloud so this enables familiar tools to be run natively on Microsoft Azure.&lt;/p&gt;
&lt;h5 id=&quot;activating-azure-cloudshell&quot;&gt;Activating Azure CloudShell&lt;/h5&gt;
&lt;p&gt;The Azure CloudShell comes preinstalled on all Azure Accounts.&lt;/p&gt;
&lt;p&gt;To access the shell — click the Terminal Icon in the upper right hand corner of the console:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/229/1*aDE04CS54dT9AnbfcRortA.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Then activate the full shell:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*CWfGFFPTC4TeQ37OyrBapg.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Note- the disk space in the environment is limited to 5GB- but this is sufficient for Gemini CLI, Google Cloud Tools, and some customization.&lt;/p&gt;
&lt;h5 id=&quot;node-version-management&quot;&gt;Node Version Management&lt;/h5&gt;
&lt;p&gt;Gemini CLI needs a consistent, up to date version of Node. The &lt;strong&gt;nvm&lt;/strong&gt; command can be used to get a standard Node environment:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/nvm-sh/nvm&quot;&gt;GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;verifying-node-js-in-azure-cloud-shell&quot;&gt;Verifying Node.js in Azure Cloud Shell&lt;/h5&gt;
&lt;p&gt;The version of Node.js is verified that it is recent enough to support Gemini CLI:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;william@Azure:~$ node --version
v25.8.1
william@Azure:~$ npm --version
11.11.0
william@Azure:~$ 
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;gemini-cli-installation&quot;&gt;Gemini CLI Installation&lt;/h5&gt;
&lt;p&gt;You can then download the Gemini CLI :&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;npm install -g @google/gemini-cli
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You will see the log messages:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;william@Azure:~$ npm install -g @google/gemini-cli
npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 618 packages in 48s

173 packages are looking for funding
  run `npm fund` for details
william@Azure:~$ 
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;testing-the-gemini-cli-environment&quot;&gt;Testing the Gemini CLI Environment&lt;/h5&gt;
&lt;p&gt;Once you have all the tools and the correct Node.js version in place- you can test the startup of Gemini CLI. You will need to authenticate with a Key or your Google Account:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;gemini
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;authentication&quot;&gt;Authentication&lt;/h5&gt;
&lt;p&gt;Several authentication options are available. To use an existing Code Assist licence — authenticate with a Google Account:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;&amp;gt; /auth                                                                                                                                                        
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ ? Get started │
│ │
│ How would you like to authenticate for this project? │
│ │
│ ● 1. Login with Google │
│ 2. Use Gemini API Key │
│ 3. Vertex AI │
│ │
│ (Use Enter to select) │
│ │
│ Terms of Services and Privacy Notice for Gemini CLI │
│ │
│ https://geminicli.com/docs/resources/tos-privacy/ │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then set the GOOGLE_CLOUD_PROJECT to a valid project setup on the Google Cloud console:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;~ $ export GOOGLE_CLOUD_PROJECT=comglitn
~ $
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Other options include Google Cloud API Key that can be generated directly from the Google Cloud Console.&lt;/p&gt;
&lt;h5 id=&quot;using-gemini-cli-on-azure-cloud-shell&quot;&gt;Using Gemini CLI on Azure Cloud Shell&lt;/h5&gt;
&lt;p&gt;Once installed- Gemini CLI has direct access to the Cloud Shell environment:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;Logged in with Google: xbill@glitnir.com /auth
Plan: Gemini Code Assist Standard

✦ Your Azure project information is as follows:

   - Subscription Name: Azure subscription 1
   - Subscription ID: 3db3ce66-50b6-4d11-91ef-5950cf4039ed
   - Tenant ID: 40482c55-d00d-4c6d-8903-643d76a74b9c
   - Environment: AzureCloud
   - User: live.com#xbill@glitnir.com

  Active Resource Groups:
   - cloud-shell-storage-eastus (eastus)
   - NetworkWatcherRG (eastus)
   - vm (eastus)

  Project Metadata:
   - Repository: github.com/xbill9/gemini-cli-azure (https://github.com/xbill9/gemini-cli-azure)
   - Google Cloud Project ID: comglitn (from project_id.txt)                                            
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and Azure operations can be performed directly from Gemini CLI:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt; &amp;gt; list azure vms using the az command                                                                                                                          
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
✦ I'll list your Azure Virtual Machines using the az command.

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓ Shell az vm list -d -o table [current working directory /home/william] (List all Azure Virtual Machines in the current subscription with detailed in… │
│ │
│ Name ResourceGroup PowerState PublicIps Fqdns Location │
│ --------- --------------- -------------- ------------- ------- ---------- │
│ azure-new VM VM deallocated 20.124.121.35 eastus │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ You have one Azure Virtual Machine:

   - Name: azure-new
   - Resource Group: VM
   - Power State: VM deallocated
   - Public IP: 20.124.121.35
   - Location: eastus
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;installing-google-cloud-tools&quot;&gt;Installing Google Cloud Tools&lt;/h5&gt;
&lt;p&gt;To simplify working with Google Cloud — install the Google Cloud Tools:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;https://docs.cloud.google.com/sdk/docs/install-sdk
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Once the installation is completed — you can verify the setup:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;william@Azure:~$ gcloud auth list
  Credentialed Accounts
ACTIVE ACCOUNT
* xbill@glitnir.com

To set the active account, run:
    $ gcloud config set account `ACCOUNT`

william@Azure:~$ gcloud config list
[compute]
region = us-west2
zone = us-west2-a
[core]
account = xbill@glitnir.com
disable_usage_reporting = False
project = comglitn

Your active configuration is: [default]
[environment: Development]
william@Azure:~$ 
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;installing-azure-customized-gemini-md&quot;&gt;Installing Azure Customized GEMINI.md&lt;/h5&gt;
&lt;p&gt;A sample GitHub repo contains tools for working with Gemini CLI on Azure. This repo is available here:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;git clone https://gitHub.com/xbill9/gemini-cli-azure
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A sample &lt;strong&gt;GEMINI.md&lt;/strong&gt; customized for the Azure environment is provided in the repo:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;This is a multi linux git repo hosted at:

github.com/xbill9/gemini-cli-azure

You are a cross platform developer working with 
Microsoft Azure and Google Cloud

You can use the Azure CLI :
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
https://learn.microsoft.com/en-us/cli/azure/
https://learn.microsoft.com/en-us/cli/azure/reference

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&amp;amp;pivots=apt

## Azure CLI Tools

You can use the Azure CLI to manage resources across Azure Storage, Virtual Machines, and other services.

- **List Resource Groups** : `az group list -o table`
- **List Storage Accounts** : `az storage account list -o table`
- **List Virtual Machines** : `az vm list -d -o table`

### Azure Update Script

- `azure-update`: This script is specifically for Azure Linux environments. It updates all packages and ensures necessary libraries are installed.

## Automation Scripts

This repository contains scripts for updating various Linux environments and tools:

- `linux-update`: Detects OS (Debian/Ubuntu/Azure Linux) and runs the corresponding update scripts.
- `azure-update`: Updates Azure Linux packages and installs necessary dependencies.
- `debian-update`: Updates Debian/Ubuntu packages and installs `git`.
- `gemini-update`: Updates the `@google/gemini-cli` via npm and checks versions of Node.js and Gemini.
- `nvm-update`: Installs NVM (Node Version Manager) and Node.js version 25.
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;perform-cross-cloud-operations&quot;&gt;Perform Cross Cloud Operations&lt;/h5&gt;
&lt;p&gt;Now that all the building blocks are in place- the Azure Cloud Shell has all the tools to have visibility into both clouds. Gemini CLI can be used directly with the &lt;strong&gt;gcloud&lt;/strong&gt; utility running on Azure:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-plaintext&quot;&gt;william@Azure:~/gemini-cli-azure$ gemini

  ▝▜▄ Gemini CLI v0.33.0
    ▝▜▄
   ▗▟▀ Logged in with Google /auth
  ▝▀ Gemini Code Assist Standard /upgrade

Tips for getting started:
1. /help for more information
2. Ask coding questions, edit code or run commands
3. Be specific for the best results
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 &amp;gt; summarize my google cloud project with the gcloud tools                                                                                                      
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

✦ Based on the gcloud tools, here is a summary of your active Google Cloud project:

  Project Overview
   - Project Name: glitnir
   - Project ID: comglitn
   - Project Number: 1056842563084
   - Status: ACTIVE (Created: Aug 31, 2014)
   - Key Labels: firebase: enabled, generative-language: enabled.

&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;summary&quot;&gt;Summary&lt;/h5&gt;
&lt;p&gt;Gemini CLI was downloaded and tested from the Azure Cloud Shell. This is a complete fully working version of Gemini CLI with all the standard features like extensions, agent skills, and a familiar interface. Then, Gemini CLI was used to perform Azure native operations using the built-in tooling. Finally the Google Cloud Tools were downoaded and installed. This is a first step to enabling cross platform projects with both Google Cloud and Azure.&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/14159/customizing-azure-cloud-shell-for-cross-cloud-development</guid>
<pubDate>Tue, 07 Apr 2026 13:46:11 +0000</pubDate>
</item>
<item>
<title>Meeting you where you are at: Gemini CLI on AWS CloudShell</title>
<link>https://coderlegion.com/14158/meeting-you-where-you-are-at-gemini-cli-on-aws-cloudshell</link>
<description>&lt;hr&gt;
&lt;p&gt;title: Meeting you where you are at: Gemini CLI on AWS CloudShell&lt;br&gt;
published: true&lt;br&gt;
series: AWS&lt;br&gt;
date: 2026-03-04 16:43:22 UTC&lt;br&gt;
tags: googlecloudplatform,aws,awscloudshell,geminicli&lt;/p&gt;
&lt;h3 id=&quot;canonical-url-https-aws-plainenglish-io-meeting-you-where-you-are-at-gemini-cli-on-aws-cloudshell-4b95bf379a26&quot;&gt;canonical_url: &lt;a rel=&quot;nofollow&quot; href=&quot;https://aws.plainenglish.io/meeting-you-where-you-are-at-gemini-cli-on-aws-cloudshell-4b95bf379a26&quot;&gt;https://aws.plainenglish.io/meeting-you-where-you-are-at-gemini-cli-on-aws-cloudshell-4b95bf379a26&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This article covers installing and Running Gemini CLI cross-cloud. The Amazon Cloud Shell provides a basic Linux environment that can support running Gemini CLI.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*xynpyR9-Ov75w9W3DLwXlw.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h5 id=&quot;what-is-gemini-cli--1&quot;&gt;What is Gemini CLI?&lt;/h5&gt;
&lt;p&gt;The Gemini CLI is an open-source, terminal-based AI agent from Google that allows developers to interact directly with Gemini models, such as Gemini 2.5 Pro, for coding, content creation, and workflow automation. It supports file operations, shell commands, and connects to external tools via the Model Context Protocol (MCP).&lt;/p&gt;
&lt;p&gt;The full details on Gemini CLI are available here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://geminicli.com/&quot;&gt;Build, debug &amp;amp; deploy with AI&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;amazon-cloud-shell&quot;&gt;Amazon Cloud Shell&lt;/h5&gt;
&lt;p&gt;AWS CloudShell is a browser-based, pre-authenticated terminal that allows users to securely manage, explore, and interact with AWS resources directly from the &lt;a rel=&quot;nofollow&quot; href=&quot;https://aws.amazon.com/cloudshell/faqs/&quot;&gt;AWS Management Console&lt;/a&gt;. It comes pre-installed with the AWS CLI, popular programming languages (Python, Node.js), and developer tools, removing the need for local configuration.&lt;/p&gt;
&lt;p&gt;The full background information on the Cloud Shell is here:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://aws.amazon.com/cloudshell/&quot;&gt;Browser-based Shell - AWS CloudShell - AWS&lt;/a&gt;&lt;/p&gt;
&lt;h5 id=&quot;why-would-i-want-gemini-cli-on-aws-isn-t-that-a-google-thing-&quot;&gt;Why would I want Gemini CLI on AWS? Isn’t that a Google Thing?&lt;/h5&gt;
&lt;p&gt;Yes- Gemini CLI leverages the Google Cloud console and Gemini models but it is also open source and platform agnostic. Many applications are already cross-cloud so this enables familiar tools to be run natively on Amazon AWS.&lt;/p&gt;
&lt;h5 id=&quot;activating-amazon-cloudshell&quot;&gt;Activating Amazon CloudShell&lt;/h5&gt;
&lt;p&gt;The AWS CloudShell comes preinstalled on all AWS Accounts.&lt;/p&gt;
&lt;p&gt;To access the shell— click the Terminal Icon in the upper right hand corner of the console:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/499/1*yDdKnhbJV-WxirpqgKvAiw.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Then activate the full shell:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*0EU61bz4VrbMUqS9F5Rw9g.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Note- the disk space in the environment is limited to 1GB.&lt;/p&gt;
&lt;h5 id=&quot;verifying-node-js-in-aws-cloud-shell&quot;&gt;Verifying Node.js in AWS Cloud Shell&lt;/h5&gt;
&lt;p&gt;The version of Node.js is verified that it is recent enough to support Gemini CLI:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;~ $ npm --version
10.8.2
~ $ node --version
v20.20.0
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;gemini-cli-installation-1&quot;&gt;Gemini CLI Installation&lt;/h5&gt;
&lt;p&gt;You can then download the Gemini CLI :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo npm install -g @google/gemini-cli
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You will see the log messages:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 624 packages in 37s

175 packages are looking for funding
  run `npm fund` for details
npm notice
npm notice New major version of npm available! 10.8.2 -&amp;gt; 11.11.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.11.0
npm notice To update run: npm install -g npm@11.11.0
npm notice
~ $ 
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;testing-the-gemini-cli-environment-1&quot;&gt;Testing the Gemini CLI Environment&lt;/h5&gt;
&lt;p&gt;Once you have all the tools and the correct Node.js version in place- you can test the startup of Gemini CLI. You will need to authenticate with a Key or your Google Account:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;gemini
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you will get full access to the CLI:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*ZVoCCfg__Zzx9KxzlU5rpw.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;h5 id=&quot;authentication-1&quot;&gt;Authentication&lt;/h5&gt;
&lt;p&gt;Several authentication options are available. To use an existing Code Assist licence — authenticate with a Google Account:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images-1.medium.com/max/1024/1*RFqHAsYqU13tQ0yHg2ikcQ.png&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;Then set the GOOGLE_CLOUD_PROJECT to a valid project setup on the Google Cloud console:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;~ $ export GOOGLE_CLOUD_PROJECT=comglitn
~ $ 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Other options include Google Cloud API Key that can be generated directly from the Google Cloud Console.&lt;/p&gt;
&lt;h5 id=&quot;using-gemini-cli-on-aws&quot;&gt;Using Gemini CLI on AWS&lt;/h5&gt;
&lt;p&gt;Once installed- Gemini CLI has direct access to the Cloud Shell environment:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Logged in with Google: xbill@glitnir.com /auth
Plan: Gemini Code Assist Standard
Tips for getting started:
1. Ask questions, edit files, or run commands.
2. Be specific for the best results.
3. Create GEMINI.md files to customize your interactions with Gemini.
4. /help for more information.
 &amp;gt; what does the aws command line tool do?
✦ The AWS Command Line Interface (CLI) is a unified tool that allows you to manage and automate your Amazon Web Services (AWS) resources directly from your terminal.

  Core Functions
   * Service Management: Control almost all AWS services (S3, EC2, Lambda, IAM, etc.) using commands instead of the web-based Management Console.
   * Automation &amp;amp; Scripting: Incorporate AWS operations into shell scripts (Bash, PowerShell, Zsh) to automate repetitive tasks like backups, infrastructure deployment,
     or scaling.
   * Resource Manipulation: Perform actions such as uploading/downloading files from S3 buckets, starting/stopping EC2 instances, and managing security credentials.
   * Direct API Access: It acts as a wrapper around the AWS SDKs, providing a direct way to interact with AWS public APIs.

  Example Commands
   * aws s3 ls: List your S3 buckets.
   * aws ec2 describe-instances: View details about your virtual servers.
   * aws configure: Set up your access keys and default region.

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and AWS operations can be performed directly from Gemini CLI:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
 &amp;gt; aws s3 ls
✦ I will check if the AWS CLI is installed and then attempt to list your S3 buckets.

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Action Required │
│ │
│ ? Shell aws --version &amp;amp;&amp;amp; aws s3 ls [current working directory /home/cloudshell-user] (Check for AWS CLI installation and list S3 buckets.) │
│ │
│ aws --version &amp;amp;&amp;amp; aws s3 ls │
│ Allow execution of: 'aws, aws'? │
│ │
│ 1. Allow once │
│ ● 2. Allow for this session │
│ 3. No, suggest changes (esc) │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with the results returned:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;✦ I will check if the AWS CLI is installed and then attempt to list your S3 buckets.

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓ Shell aws --version &amp;amp;&amp;amp; aws s3 ls [current working directory /home/cloudshell-user] (Check for AWS CLI installation and list S3 buckets.) │
│ │
│ aws-cli/2.33.30 Python/3.13.11 Linux/6.1.161-183.298.amzn2023.x86_64 exec-env/CloudShell exe/x86_64.amzn.2023 │
│ 2020-07-03 04:30:32 gitnir1 │
│ 2026-02-01 10:31:45 glitnir │
│ 2020-07-08 13:25:09 xbill99 │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ The AWS CLI is installed (version 2.33.30) and returned the following S3 buckets:

   - gitnir1 (Created: 2020-07-03)
   - glitnir (Created: 2026-02-01)
   - xbill99 (Created: 2020-07-08)
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;session-results&quot;&gt;Session Results&lt;/h5&gt;
&lt;p&gt;Because the Gemini CLI Installation is the same across environments- all session information is consistent:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Agent powering down. Goodbye! │
│ │
│ Interaction Summary │
│ Session ID: bf164e83-6373-458a-8ca3-91b5bdbf1fe3 │
│ Tool Calls: 3 ( ✓ 2 x 1 ) │
│ Success Rate: 66.7% │
│ User Agreement: 100.0% (3 reviewed) │
│ │
│ Performance │
│ Wall Time: 8m 53s │
│ Agent Active: 42.0s │
│ » API Time: 27.6s (65.6%) │
│ » Tool Time: 14.4s (34.4%) │
│ │
│ Model Usage │
│ Model Reqs Input Tokens Cache Reads Output Tokens │
│ ──────────────────────────────────────────────────────────────────────────── │
│ gemini-2.5-flash-lite 4 5,109 0 196 │
│ gemini-3-flash-preview 6 8,126 31,994 479 │
│ │
│ Savings Highlight: 31,994 (70.7%) of input tokens were served from the cache, reducing costs. │
│ │
│ Tip: Resume a previous session using gemini --resume or /resume │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
&lt;/code&gt;&lt;/pre&gt;
&lt;h5 id=&quot;summary-1&quot;&gt;Summary&lt;/h5&gt;
&lt;p&gt;Gemini CLI was downloaded and tested from the AWS Cloud Shell. This is a complete fully working version of Gemini CLI with all the standard features like extensions, agent skills, and a familiar interface. Then, Gemini CLI was used to perform AWS native operations using the built-in AWS tooling. This is a first step to enabling cross platform projects with both Google Cloud and AWS.&lt;/p&gt;
&lt;hr&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/14158/meeting-you-where-you-are-at-gemini-cli-on-aws-cloudshell</guid>
<pubDate>Tue, 07 Apr 2026 13:45:26 +0000</pubDate>
</item>
</channel>
</rss>