In order to use the CLI integration, first download the CLI and run it using the proper command using the step-by-step instructions below. This process includes generating an access key on the integrations page.

Download the CLI application

1. Click Integrations on the left panel and click CLI Integration

2. Click the Add Integration button under CLI Integration to download the suggested version for your operating system. If you need to download a different version, click the dropdown arrow

3. Unzip the CLI into the folder you wish to run it from

Once the CLI application has been downloaded, the process can begin to generate the CLI command.

Generate the CLI command

1. Click Select Project and choose which project you want to use the CLI integration for. This will update the example command with the proper project id.

2. Click Generate New Key. This will update the example command with a CLI access key. Once you’ve generated this key, do not navigate away from this page without copying the command, as you will not be able to see the full key again afterwards.

3. Copy the entire example command, starting from “oak9scan”

4. Open a terminal to the directory containing the CLI and paste the example command. Replace {DirectoryPath} with the path to the Terraform you want to validate.

5. Running this command will begin validation of the Terraform directory determined by the path

Did this answer your question?