# Stripe CLI

The Stripe Command Line Interface (CLI) is a powerful tool that allows you to interact with the Stripe API directly from your terminal. It simplifies common development tasks, such as testing webhooks, managing API keys, and creating fixtures.

## Core Commands

The Stripe CLI provides a wide range of commands to manage your Stripe integration. Here are some of the most commonly used ones:

### Authentication

*   **/cli/login**: Log in to your Stripe account.
*   **/cli/logout**: Log out of your Stripe account.
*   **/cli/api_keys**: View and manage your API keys.

### Webhooks

*   **/cli/listen**: Forward Stripe events from your Stripe account to your local development server. This is essential for testing webhook handlers.
*   **/cli/events/resend**: Resend past Stripe events to your webhook endpoint.

### Data Management

*   **/cli/fixtures**: Create and manage test data (fixtures) for your Stripe objects.
*   **/cli/get**: Retrieve specific Stripe objects.
*   **/cli/post**: Create new Stripe objects.
*   **/cli/delete**: Delete Stripe objects.

### Other Useful Commands

*   **/cli/completion**: Set up shell command completion for the Stripe CLI.
*   **/cli/config**: Configure Stripe CLI settings.
*   **/cli/docker**: Run Stripe CLI commands within a Docker container.
*   **/cli/help**: Display help information for the Stripe CLI.
*   **/cli/intro_stripe_samples**: Explore sample Stripe integrations.
*   **/cli/samples/create**: Create new sample Stripe integrations.
*   **/cli/samples/list**: List available sample Stripe integrations.
*   **/cli/serve**: Serve static files locally, useful for front-end development.
*   **/cli/terminal/quickstart**: Get started with Stripe Terminal using the CLI.
*   **/cli/telemetry**: Manage telemetry settings for the Stripe CLI.
*   **/cli/version**: Display the current version of the Stripe CLI.
*   **/cli/feedback**: Provide feedback on the Stripe CLI.
*   **/cli/license**: View the Stripe CLI license.

## Getting Started

To get started with the Stripe CLI, you'll first need to install it. Refer to the [official Stripe CLI documentation](https://stripe.com/docs/stripe-cli) for installation instructions for your operating system.

Once installed, you can log in to your Stripe account using the `/cli/login` command. This will prompt you to enter your Stripe API key.

The Stripe CLI is an invaluable tool for any developer working with Stripe. By familiarizing yourself with its commands, you can significantly streamline your development workflow and accelerate your integration process.