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:
-
Verify Node installation:
Ensure you have Node.js v14.17.0 or later installed. You can check your version using:node -v
-
Install the package:
npm install -g @facets-cloud/facetsctlv3
-
Verify installation:
Run the following command to ensure the CLI is installed correctly:facetsctl --version
-
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>
-
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.
-
Download the appropriate binary:
For Mac OsType Architecture Download link Gzip 64-bit facetsctl-darwin-x64.tar.gz XZ 64-bit facetsctl-darwin-x64.tar.xz Gzip ARM64 facetscti-darwin-arm64.tar.gz XZ ARM64 facetsctI-darwin-arm64.tar.xz For LinuxType Architecture Download link Gzip 64-bit facetsctl-linux-x64.tar.gz XZ 64-bit facetsctI-linux-×64.tar.xz Gzip ARM facetsctl-linux-arm.tar.gz XZ ARM facetsctl-linux-arm.tar.xz Gzip ARM64 facetsctl-linux-arm64.tar.gz XZ ARM64 facetsctl-linux-arm64.tar.xz For WindowsType Architecture Download link Gzip 64-bit facetsctl-win32-x64.tar.gz XZ 64-bit facetsctl-win32-x64.tar.xz Gzip 32-bit facetsctI-win32-x86.tar.gz XZ 32-bit facetsctI-win32-x86.tar.xz -
Make the binary executable:
After downloading, make the binary executable (for Linux/macOS):chmod +x ./facetsctl
-
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
-
Verify installation:
Run the following command to ensure the CLI is installed correctly:facetsctl --version
-
Log in using Facets CLI:
Log in using Facets CLI with your username and token:$ facetsctl login -u <value> -t <value> -f <value>
Updated about 1 hour ago