> ## Documentation Index
> Fetch the complete documentation index at: https://checklyhq.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Command line triggers for Terraform

> Set up command line triggers to run checks from CI/CD pipelines or programmatically

[Command line triggers](https://www.checklyhq.com/docs/cicd/triggers/) enable you to call a check from a CI/CD pipeline, a bash shell or programmatically in your code.

You can specify command line triggers as standalone resources at check or group level:

```terraform theme={null}
resource "checkly_trigger_check" "test-trigger-check" {
   check_id = "c1ff95c5-d7f6-4a90-9ce2-1e605f117592"    // The id of the check to be triggered
}

output "test-trigger-check-url" {
  value = checkly_trigger_check.test-trigger-check.url  // This will output the trigger url
}

resource "checkly_trigger_group" "test-trigger-group" { // The id of the group to be triggered
   group_id = "215"
}

output "test-trigger-group-url" {
  value = checkly_trigger_group.test-trigger-group.url  // This will output the trigger url
}
```

You can see all the configuration options for [group triggers](https://registry.terraform.io/providers/checkly/checkly/latest/docs/resources/trigger_group), as well as more examples [check triggers](https://registry.terraform.io/providers/checkly/checkly/latest/docs/resources/trigger_check), on the official Terraform registry documentation page.
