Install a Mod via CLI

In this guide, you will install a mod using the Guardrails CLI. CLI-based installation is useful for GovCloud environments where the mod registry is not directly accessible, CI/CD pipelines, scripted deployments, and environments where direct web access is restricted.

[!IMPORTANT] This approach is particularly important for AWS GovCloud environments, where direct access to the Turbot mod registry is restricted because the registry is hosted in commercial AWS accounts.

Prerequisites

[!NOTE] Even with a guardrails.turbot.com account, you may not have mod download permissions by default. If you encounter permission errors, contact Turbot Support to request access.

Step 1: Download the Mod

Navigate to a directory for storing mod packages (e.g., /turbot/mods) and download the mod using the Guardrails CLI:

turbot download @turbot/aws-redshift

This fetches the mod package from the Turbot registry and saves it as a zip file in the current directory.

Step 2: Install the Mod

Upload and install the downloaded mod into your workspace:

turbot up --zip-file turbot_aws-redshift --profile <profile-name>

Replace <profile-name> with the name of your CLI profile for the target workspace.

ParameterDescription
--zip-fileThe name of the downloaded mod package (without the .zip extension).
--profileThe CLI profile configured for the target workspace.

Step 3: Verify the Installation

Allow a few minutes for the mod to initialize, then verify in the Guardrails console:

  1. Navigate to Workspace > Mods.
  2. Search for the mod you installed.
  3. Confirm that Install State shows Installed and Health shows a green checkmark.

Troubleshooting

IssueSolution
Incorrect username or passwordVerify your credentials by logging into guardrails.turbot.com. Use the password reset option if needed.
You do not have the necessary permissions to downloadContact Turbot Support to request mod download permissions.
Installation fails with dependency errorThe mod may require a parent mod to be installed first. Check the mod's dependencies on the Turbot Hub and install them in order.
Further assistanceOpen a Support Ticket

Next Steps