After installation, you can get started writing rules with our Getting started guide.
Install the SDK with npm
Install our SDK using npm.
Ensure you’ve installed the latest version of npm on your local environment, using Node version 10 or later.
Run this command to install it for local use:
npm install -g snyk-iac-rules
Once installed, you are ready to use the SDK. Run the following command to verify that it works:
Install the SDK using the prebuilt binaries
You can download and use the SDK's prebuilt binaries. To download the prebuilt binary, visit the Releases tab in the SDK repository page in GitHub:
After you've downloaded the desired binary archive, open a terminal and run the following commands (note that these commands assume you're running on an Intel-based macOS and downloading version 0.0.5 of the SDK):
$ tar xzf snyk-iac-rules_0.0.5_Darwin_x86_64.tar.gz
$ sudo mv snyk-iac-rules /usr/local/bin
To verify the ability to use it, run:
Install the SDK with Homebrew
From macOS and Linux environments, you can use Homebrew to install our SDK. The repository for installation is stored in our GitHub.