Installing Facets CLI

Facets CLI provides a command-line interface to manage and interact with your Facets projects. This guide outlines two methods to install Facets CLI: using NPM or using binaries.

Prerequisites

  • Access to Facets environment: You will need credentials or access permissions for your Facets setup.
  • Network access: Ensure your system has internet access to download the required files.

Installation Methods

1. Install Using NPM

Facets CLI is available as an NPM package. Follow these steps:

  1. Verify Node installation:
    Ensure you have Node.js v14.17.0 or later installed. You can check your version using:

    node -v
    
  2. Install the package:

    npm install -g @facets-cloud/facetsctlv3
    
  3. Verify installation:
    Run the following command to ensure the CLI is installed correctly:

    facetsctl --version
    
  4. Login using FacetsCLI:
    After installation, log in to the Facets Control Plane. You will be prompted to enter your API token, organization ID, and other required details.

    Example configuration command:

    $ facetsctl login -u <value> -t <value> -f <value>
    
  5. Available Commands:
    To see all available commands and their descriptions, use:

    facetsctl help
    

    For additional details, refer to the Facetsctl Commands


2. Install Using Binaries

If you prefer to use pre-built binaries, download Facets CLI directly from the provided links.

  1. Download the appropriate binary:

    For Mac Os

    For Linux

    For Windows

  2. Make the binary executable:
    After downloading, make the binary executable (for Linux/macOS):

    chmod +x ./facetsctl
    
  3. Move the binary to your PATH:
    Move the executable file to a directory included in your system’s PATH. For example:

    sudo mv ./facetsctl /usr/local/bin/facetsctl
    
  4. Verify installation:
    Run the following command to ensure the CLI is installed correctly:

    facetsctl --version
    
  5. Log in using Facets CLI:
    Log in using Facets CLI with your username and token:

    $ facetsctl login -u <value> -t <value> -f <value>