Install Sentinel CLI - Getting Started - Sentinel by HashiCorp

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

VERSION

v0.18.x (latest)

Filter...
Install Sentinel CLI
What is Sentinel?
Sentinel is a policy framework that is
Why Sentinel? embedded in the enterprise versions of

Getting Started HashiCorp tools. The policies you write are


deployed to these applications and
enforced
Overview
there.
Installing the CLI
The Sentinel CLI is a command-line interface
Your First Policy
for local development and testing.
For the
Rules getting started guide, we'll use the CLI to learn

Logic how to write policies


for Sentinel-enabled
applications. The Sentinel CLI is distributed as
Imports
a binary
package for all supported platforms
Testing and architectures.

Next Steps

Installation Instructions
To install the Sentinel CLI, find the appropriate
package for your
system and download it. The
CLI is packaged as a zip archive.

After downloading Sentinel, unzip the


package. The CLI runs as a single binary
named sentinel . Any other files in the
We use cookies & other similar technology to collect data to improve your experience on our site, as described in
our Privacy Policy and Cookie Policy. package can be safely removed and
Sentinel
will still function.
Manage Preferences ACCEPT
The final step is to make sure that the
sentinel binary is available on the PATH .

See this page


for instructions on setting the
PATH on Linux and Mac.
This page
contains
instructions for setting the PATH on Windows.

Verifying the Installation


After installing the Sentinel CLI, verify the
installation worked by opening a
new terminal
session and checking that the sentinel
binary is available. By
executing sentinel ,
you should see help output similar to the
following:

$ sentinel Copy
Usage: sentinel [--version] [--help] <c

Available commands are:


apply Execute a policy and out
fmt Format Sentinel policy t
test Test policies
version Prints the Sentinel vers

If you get an error that the binary could not be


found, then your PATH
environment variable
was not setup properly. Please go back and
ensure that your
PATH variable contains the
directory where Sentinel was installed.
We use cookies & other similar technology to collect data to improve your experience on our site, as described in
our Privacy Policy and Cookie Policy.
Otherwise, the CLI is installed and ready to go.
Let's
Manage Preferences celebrate
ACCEPTby writing our
first policy!
Email address Subscribe to Newsletter

I agree to HashiCorp’s Privacy Policy.*

PROVISION SECURE PRODUCTS RESOURCES COMPANY

Multi-Cloud Multi-Cloud Security


Terraform Blog About Us
Infrastructure
Vault Tutorials Jobs

Consul Community Press Center

Nomad Events Brand

CONNECT RUN Vagrant Integrations Contact Us

Multi-Cloud Multi-Cloud Packer Library


Networking Orchestration Boundary Partners

Waypoint Podcast

Sentinel Support

Training

System Status Cookie Manager Terms of Use Security Privacy Trademark Policy

stdin: is not a tty

We use cookies & other similar technology to collect data to improve your experience on our site, as described in
our Privacy Policy and Cookie Policy.

Manage Preferences ACCEPT

You might also like