How to run a Checkpoint in terminal

This guide will help you run a Checkpoint in a terminal.

Prerequisites: This how-to guide assumes you have already:

Steps

Show Docs for V2 (Batch Kwargs) API

  1. Checkpoints can be run like applications from the command line by running:

great_expectations checkpoint run my_checkpoint
Validation failed!
  1. Next, observe the output which will tell you if all validations passed or failed.

This command will return posix status codes and print messages as follows:

Situation

Return code

Message

all validations passed

0

Validation succeeded!

one or more validation failed

1

Validation failed!

Show Docs for V3 (Batch Request) API

  1. Checkpoints can be run like applications from the command line by running:

great_expectations --v3-api checkpoint run my_checkpoint
Validation failed!
  1. Next, observe the output which will tell you if all validations passed or failed.

This command will return posix status codes and print messages as follows:

Situation

Return code

Message

all validations passed

0

Validation succeeded!

one or more validation failed

1

Validation failed!