-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from DanielGubay/main
created oci install guide
- Loading branch information
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
additional_search_terms: | ||
- cloud | ||
- OCI | ||
- Oracle | ||
- infrastructure | ||
|
||
layout: installtoolsall | ||
minutes_to_complete: 10 | ||
author_primary: Daniel Gubay | ||
multi_install: false | ||
multitool_install_part: false | ||
official_docs: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm | ||
test_images: | ||
- ubuntu:latest | ||
|
||
test_maintenance: true | ||
test_status: | ||
- passed | ||
title: Oracle Cloud Infrastructure (OCI) CLI | ||
tool_install: true | ||
weight: 1 | ||
--- | ||
|
||
[OCI CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) is a cross-platform command-line tool that can be installed locally on development computers. OCI CLI is used to connect to OCI and execute administrative commands on OCI resources. | ||
|
||
It is available for a variety of operating systems and Linux distributions and has multiple ways to install it. | ||
|
||
## Before you begin | ||
|
||
[General installation information](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm#InstallingCLI__linux_and_unix) is available which covers all supported Linux distributions. | ||
|
||
This install guide provides a quick solution to install OCI CLI for Ubuntu on Arm. | ||
|
||
Confirm you are using an Arm machine by running: | ||
|
||
```bash | ||
uname -m | ||
``` | ||
|
||
The output should be: | ||
|
||
```output | ||
aarch64 | ||
``` | ||
|
||
If you see a different result, you are not using an Arm computer running 64-bit Linux. | ||
|
||
## Download and Install | ||
|
||
The easiest way to install OCI CLI for Ubuntu on Arm is to use the installer script. | ||
|
||
Install OCI using the command below. | ||
|
||
```bash { target="ubuntu:latest" } | ||
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)" | ||
``` | ||
You are prompted by the installation script with the following questions: | ||
- In what directory would you like to place the install? (leave blank to use '/home/ubuntu/lib/oracle-cli'): | ||
- In what directory would you like to place the 'oci' executable? (leave blank to use '/home/ubuntu/bin'): | ||
- In what directory would you like to place the OCI scripts? (leave blank to use '/home/ubuntu/bin/oci-cli-scripts'): | ||
- What optional CLI packages would you like to be installed (comma separated names; press enter if you don't need any optional packages)?: | ||
|
||
You can press Enter for the the default selection on all the questions or enter the path to a directory of your choice. | ||
|
||
Verify OCI CLI installed: | ||
|
||
```bash { target="ubuntu:latest" } | ||
oci --version | ||
``` | ||
|
||
After a successful log in, you can use the [OCI CLI](../oci-cli) and automation tools like [Terraform](../terraform) from the terminal. |