Installing the Fn Project CLI
Find out how to install the Fn Project CLI for use with OCI Functions.
Before using OCI Functions, the Fn Project CLI must be installed in your development environment.
If you are using Cloud Shell as your development environment, the Fn Project CLI has already been installed for you.
You can install the Fn Project CLI in a number of different ways according to your environment.
The instructions in this topic assume:
- you are not using Cloud Shell as your development environment
- you are using Linux
- you have already completed the steps in Installing Docker for Use with OCI Functions
To install the Fn Project CLI:
Log in to your development environment as a functions developer.
Open the README.md file in the fnproject/cli repository on GitHub and follow the appropriate instructions for installing the Fn Project CLI in your development environment. As a convenient overview, the instructions are summarized below:
In a MacOS environment using Homebrew, install the Fn Project CLI by entering:
brew update && brew install fn
In a Linux or MacOS environment, install the Fn Project CLI by entering:
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
If prompted for a password, enter the superuser's password.
- In a Windows environment, install the Fn Project CLI by following the Install Fn Client instructions in the How-to: Run Fn client on Windows and connect to a remote Fn server topic on GitHub.
In a Linux, MacOS, or Windows environment, install the Fn Project CLI by downloading the binary from the Releases page and running it.
In a terminal window, confirm that the CLI has been installed by entering:
Assuming the Fn Project CLI has been installed correctly, you'll see a message indicating the version of the CLI that has been installed.
When you have completed the steps in this topic, go on to Creating an Fn Project CLI Context to Connect to Oracle Cloud Infrastructure.