CLI Quickstart
In this guide you’ll install and learn how to use the cf
CLI to request access to entitlements.
Installing
We release precompiled binaries of the Common Fate CLI for MacOS, Linux and Windows. The CLI itself is open-sourced here. Choose instructions corresponding to your operating system below.
Homebrew is an open source package manager for MacOS. We publish a Homebrew formula for the Common Fate CLI. To install the CLI with Homebrew, run the command below in your terminal.
Select the steps which match your system architecture. You can find your architecture by running uname -m
from a terminal window.
First, download the zip archive of the Common Fate CLI which matches your system’s architecture. You can find your architecture by viewing your system properties in the Control Panel.
After downloading the CLI, unzip the package.
You’ll need to move cf
to a folder that is accessible on your PATH
. This StackOverflow link has instructions on how to do this.
If you are using cf
with the Git Bash shell on Windows, we recommend enabling experimental support for pseudo consoles. You may need to reinstall Git For Windows to enable this. You can read more about this here.
Verify the installation
You can verify the integrity and authenticity of the binary you have downloaded by running through the verification process here. We use the same GPG keys to sign the Common Fate binary as we do for the Granted CLI shown in the linked documentation.
First-time CLI setup
To configure the CLI to communicate with your Common Fate deployment, run:
The first time you run the CLI you’ll be prompted for your deployment URL. This is the URL that you access your web dashboard through, such as https://commonfate.example.com
. After you’ve entered your dashboard, the CLI will attempt to log you in.
The CLI will also set up a TOML configuration file in ~/.cf/config
containing the OIDC authentication information associated with your deployment. This file will look something like this:
To discover the available commands in the CLI, you can run:
You can now use the CLI to request access to entitlements. You can list the available entitlements with:
And request access with: