---
title: "Example of a CLI Validator"
canonical: "https://support.appfire.com/space/JCLI/71139455/Example%20of%20a%20CLI%20Validator"
format: markdown
---
> Macro (aura-html)

# Description

This shows how to configure a CLI validator that can prevent a transition from occurring based on the results of a CLI action. In this case, we will check the existence of a JIRA project. This page was motivated from this question: [Example of a CLI Validator](https://appfire.atlassian.net/wiki/spaces/JCLIP/pages/71139455).

# Configuration

- This configuration assumes you have configured a user variable called **jira-local** that represents the JIRA server and credentials. See [User Defined Substitution Variables](https://appfire.atlassian.net/wiki/spaces/JCLIP/pages/71139573).

![image](media://a4ac17c0-8ef7-4dc7-8be5-6080c2328f2e)

# Validator Fail Message

- If the project does not exist, the validator will stop the transition from failing an issue the following message to the user.

![image](media://60b070e2-554f-463b-bf38-4a0976fab724)