# Stripe CLI

The Stripe CLI is a command-line interface tool that helps you build and manage your Stripe integration. You can use it to:

- **Create and manage API keys:** Generate, view, and revoke your Stripe API keys.
- **Configure your environment:** Set up your Stripe account and configure CLI settings.
- **Simulate events:** Trigger Stripe events to test your webhooks and application logic.
- **Interact with the Stripe API:** Make direct API requests to Stripe.
- **Manage Stripe resources:** Create, retrieve, update, and delete various Stripe resources.
- **Work with Stripe Samples:** Easily create and manage sample Stripe integrations.
- **Serve webhooks locally:** Receive and process Stripe webhooks in your local development environment.
- **Manage telemetry:** Control the collection of usage data.
- **View logs:** Tail and view Stripe logs to debug your integration.
- **Manage Docker:** Integrate Stripe CLI with Docker for development workflows.
- **Get help and version information:** Access documentation and check your CLI version.

## Getting Started

1.  **Install the Stripe CLI:** Follow the installation instructions for your operating system.
2.  **Log in to your Stripe account:** Use the `stripe login` command to authenticate the CLI with your Stripe account.
3.  **Explore commands:** Use `stripe help` to see a list of available commands and their descriptions.

## Key Features

### API Keys

-   `stripe api_keys create`: Create new API keys.
-   `stripe api_keys list`: List existing API keys.
-   `stripe api_keys revoke`: Revoke an API key.

### Webhooks

-   `stripe listen`: Start a local webhook listener.
-   `stripe trigger`: Trigger Stripe events.

### API Interaction

-   `stripe get <resource>`: Retrieve a resource.
-   `stripe post <resource>`: Create a resource.
-   `stripe delete <resource>`: Delete a resource.

### Samples

-   `stripe samples create`: Create a new Stripe sample project.
-   `stripe samples list`: List available Stripe samples.

### Docker

-   `stripe docker`: Commands related to Docker integration.

### Logging

-   `stripe logs tail`: Tail Stripe logs in real-time.

### Configuration

-   `stripe config`: Manage CLI configuration settings.

### Other Commands

-   `stripe version`: Display the Stripe CLI version.
-   `stripe help`: Display help information for the Stripe CLI.
-   `stripe feedback`: Send feedback to the Stripe team.
-   `stripe license`: Display the Stripe CLI license.
-   `stripe completion`: Generate shell completion scripts.
-   `stripe logout`: Log out of your Stripe account.
-   `stripe open`: Open a Stripe resource in your browser.

## Further Information

For detailed information on each command and its options, refer to the [Stripe CLI Reference](https://stripe.com/docs/stripe-cli).