๐ How to Use Oracle Cloud Shell Like a Pro
Introduction
Oracle Cloud Shell is a browser-based terminal pre-authenticated with your Oracle Cloud account. It comes with a rich set of tools to help you manage and automate your OCI resources—no setup needed.
In this blog, we’ll walk through everything from launching Cloud Shell to using advanced tools like oci-cli, Git, and Terraform—all directly from your browser.
๐งฐ What Is Oracle Cloud Shell?
-
Web-based shell environment
-
Persistent 5GB storage in
$HOME/cloudshell -
Pre-installed tools:
-
OCI CLI
-
Git
-
Terraform
-
Kubectl
-
Helm
-
Python, Java, Node.js
-
Text editors (nano, vi)
-
-
Auto-authenticated: No need to configure your API keys.
๐ข How to Launch Oracle Cloud Shell
-
Log in to Oracle Cloud Console.
-
Click the Cloud Shell icon (top-right corner, looks like
>_). -
The shell will open in the lower panel—ready to use.
๐ Persistent Storage in Cloud Shell
You get 5GB persistent storage in $HOME/cloudshell. Use it to store:
-
Scripts
-
Terraform files
-
Git repos
-
Configs
~/cloudshell are NOT persistent across sessions.OCI CLI is pre-installed and authenticated. Example commands:
List all Compartments:
oci compute image list to find available images..oci/config.๐งฌ Using Git in Cloud Shell
Git is pre-installed and can be used to clone or push repos.
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git clone https://github.com/your-repo/project.git
๐ณ Advanced Tools: kubectl, Helm, Docker
Cloud Shell supports container tools:
Use kubectl with OKE:
๐ Limitations of Cloud Shell
-
5GB persistent storage only
-
Session timeout after inactivity
-
Not ideal for long-running tasks
-
No root access
๐ Final Thoughts
Oracle Cloud Shell is a powerful tool that removes the need to install and configure CLI tools on your local machine. Whether you're testing, automating, or managing resources—Cloud Shell lets you do it all with minimal effort.
Use it wisely and pair it with automation via Terraform or OCI CLI scripts to supercharge your productivity in the cloud
๐ Related Resources
https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm
https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cloudshellintro.htm



Comments
Post a Comment