---
title: Pulumi CLI
url: /docs/iac/cli/
---


Pulumi is controlled primarily using the command line interface (CLI). It works in conjunction with Pulumi Cloud
to deploy changes to your cloud apps and infrastructure. It keeps a history of who updated what in your team and when.
This CLI has been designed for great inner loop productivity, in addition to
[continuous integration and delivery](/docs/iac/operations/continuous-delivery/) scenarios.

## Installation

The Pulumi CLI is open source and free to use:

[Install Pulumi](/docs/get-started/install)

## Common Commands

The most common commands in the CLI that you'll be using are as follows:

* [`pulumi new`](/docs/iac/cli/commands/pulumi_new/): creates a new project using a template
* [`pulumi stack`](/docs/iac/cli/commands/pulumi_stack/): manage your stacks (at least one is required to perform an update)
* [`pulumi config`](/docs/iac/cli/commands/pulumi_config/): configure variables such as keys, regions, and so on
* [`pulumi up`](/docs/iac/cli/commands/pulumi_up/): preview and deploy changes to your program and/or infrastructure
* [`pulumi preview`](/docs/iac/cli/commands/pulumi_preview/): preview your changes explicitly before deploying
* [`pulumi destroy`](/docs/iac/cli/commands/pulumi_destroy/): destroy your program and its infrastructure when you're done
* [`pulumi api`](/docs/iac/cli/api/): call any [Pulumi Cloud REST API](/docs/reference/cloud-rest-api/) endpoint directly from the CLI

## Complete Reference

For the complete, versioned documentation of every Pulumi CLI command, see the
[CLI command reference](/docs/iac/cli/commands/).

## Environment Variables

For a list of environment variables that you can use to work with the Pulumi CLI, see [Environment variables](/docs/iac/cli/environment-variables/).

## Error and exit codes

To learn how Pulumi maps internal errors to stable CLI exit codes you can use in automation, see [Pulumi CLI exit codes](/docs/iac/cli/exit-codes/).
