Install and Configure
Getting started with TerraHub CLI is pretty straightforward:
  1. 1.
    Next, check if npm is installed:
    1
    npm --version
    Copied!
    The output should look similar to the one below (no need to copy paste):
    1
    v5.6.0
    Copied!
    NOTE: If npm is missing, check out Downloading and installing Node.js and npm
  2. 2.
    Install terrahub globally using npm:
    1
    npm install --global terrahub
    Copied!
    The output should look similar to the one below (no need to copy paste):
    1
    ~/.nvm/versions/node/v8.10.0/lib
    Copied!
  3. 3.
    Test if terrahub cli was installed properly:
    1
    terrahub --help
    Copied!
    NOTE: TerraHub CLI doesn't magically collect your data and upload to TerraHub API, which is further visualized in TerraHub Console. In order to do that, please sign up for a free account at console.terrahub.io and navigate to Settings page to copy TerraHub Token. Next, setup TerraHub Token as THUB_TOKEN environmental variable or update token value in global config file - $HOME/.terrahub/.terrahub.json.
Copy link