Upgrading the Fn Project CLI
Find out how to upgrade the Fn Project CLI for use with OCI Functions.
OCI Functions is powered by the Fn Project open source engine. As a result, you can use the Fn Project CLI to perform create, read, update, and delete operations on OCI Functions. For more information about the Fn Project CLI, see Using the Fn Project CLI with OCI Functions.
From time to time, new versions of the Fn Project CLI are released. We recommend you regularly check that the most recent version is installed.
To see which version of the Fn Project CLI is currently installed, whether it is the most recent version, and to upgrade to the most recent version, see Steps to upgrade the Fn Project CLI.
Alternatively, simply reinstall the Fn Project CLI (see Functions QuickStart Guides and Installing the Fn Project CLI).
Steps to upgrade the Fn Project CLI
To upgrade the Fn Project CLI to the most recent version:
-
In a terminal window in your development environment, log in as a functions developer and confirm which version of the Fn Project CLI is currently installed and whether it is the most recent version by entering:
fn --version
If the currently installed version of the Fn Project CLI is not the most recent version, complete the following steps to upgrade the Fn Project CLI.
-
Upgrade to the latest version of the Fn Project CLI in one of the following ways:
-
In a Linux or MacOS environment, enter:
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
If prompted for a password, enter the superuser's password.
-
In a MacOS environment using Homebrew, enter:
brew update && brew install fn
-
In all environments, download and install the latest binary from the Releases page.
For more detailed instructions, see the README.md file in the fnproject/cli repository on GitHub.
-
-
In a terminal window, confirm that the most recent version of the Fn Project CLI has been installed by entering:
fn --version