We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.
Learn more.

CLI ReferenceTriggering Workflows

Triggering Workflows

You can use the hatchet trigger command to trigger workflows locally for testing and development purposes. This command allows you to set up triggers in your hatchet.yaml file that define how to run specific workflows.

Example

In your hatchet.yaml file, you can define a trigger for a simple workflow like this:

triggers:
  - name: "simple"
    command: "poetry run python src/run.py"
    description: "Trigger a simple workflow"

Then, you can select this trigger when running the hatchet trigger command:

hatchet trigger simple

Or just hatchet trigger, which will prompt you to select a trigger interactively.