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
- Guardrails CLI installed and configured with appropriate credentials.
Turbot/Ownerpermissions in the target workspace.- A registered account at guardrails.turbot.com with approved mod download permissions.
- Network access to download mods from
guardrails.turbot.com. - For GovCloud: access to a bastion host in your environment. See the Turbot Bastion Host guide if you need to set one up.
[!NOTE] Even with a
guardrails.turbot.comaccount, 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.
| Parameter | Description |
|---|---|
--zip-file | The name of the downloaded mod package (without the .zip extension). |
--profile | The 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:
- Navigate to Workspace > Mods.
- Search for the mod you installed.
- Confirm that Install State shows
Installedand Health shows a green checkmark.
Troubleshooting
| Issue | Solution |
|---|---|
Incorrect username or password | Verify your credentials by logging into guardrails.turbot.com. Use the password reset option if needed. |
You do not have the necessary permissions to download | Contact Turbot Support to request mod download permissions. |
| Installation fails with dependency error | The 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 assistance | Open a Support Ticket |
Next Steps
- Install a Mod, Install mods through the Guardrails console UI.
- Update a Mod, Update an installed mod to a newer version.