Skip to main content
Skip table of contents

OnFinality CLI Tool and Access Keys

Installation

The OnFinality CLI tool is published to this GitHub here https://github.com/OnFinality-io/onf-cli

To install the Onfinality CLI tool, run the following command:

BASH
curl -s https://raw.githubusercontent.com/OnFinality-io/onf-cli/master/scripts/install/install.sh | bash

Verify the installation was successful by running:

BASH
onf --help

Create Access Keys

Access Key is used by onf-cli and onf-github-actions . This article will show you how to create one and revoke an existing key.

  1. Login to OnFinality and go to the account page

  2. Under Access Keys, click Add New Access

  3. OnFinality will generate a new access key and secret. Please record this now because it can not be retrieved after you close this modal

  4. To revoke a key, click the Delete icon 

Add Access Key to onf-cli

To add this access key to onf-cli, type onf setup

You will be prompted to enter both the access key and the secret key, as well as select your primary workspace.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.