## Stripe CLI Documentation

This documentation outlines the various commands and functionalities of the Stripe Command Line Interface (CLI). The Stripe CLI is a powerful tool that allows developers to interact with the Stripe API directly from their terminal, streamlining the process of building, testing, and managing Stripe integrations.

### Core Commands & Authentication

*   **`stripe login`**: Connects the CLI to your Stripe account, persisting your secret key locally. This is the recommended way to authenticate. It supports interactive login and project-specific configurations.
    *   `/cli.md`
    *   `/cli/login.md`
*   **`stripe logout`**: Removes credentials that connect the CLI to your Stripe account, supporting removal for a specific project or all projects.
    *   `/cli/logout.md`
*   **`stripe api_keys`**: Discusses the different methods for using Stripe API keys with the CLI, including `login`, `config`, `--api-key` flag, and environment variables.
    *   `/cli/api_keys.md`
*   **`stripe config`**: Allows manual configuration of CLI options, including setting, unsetting, listing, and editing configuration files. Supports project-specific configurations.
    *   `/cli/config.md`

### Managing API Resources & Data

*   **`stripe resources`**: Enables interaction with Stripe API resources through resource commands and HTTP commands. You can create, retrieve, update, and delete API objects.
    *   `/cli/intro_resources_http.md`
    *   `/cli/resources.md`
*   **`stripe fixtures`**: Facilitates issuing a series of API requests using a JSON file, useful for generating sample data, executing flows, and testing API behavior. Supports referencing responses and environment variables.
    *   `/cli/fixtures.md`

### Development & Testing Tools

*   **`stripe listen`**: Securely tests webhooks without third-party tunneling software.
    *   *(Mentioned in `/cli.md`)*
*   **`stripe logs tail`**: Tails API request logs in real-time.
    *   *(Mentioned in `/cli.md`)*

### Samples & Quickstarts

*   **`stripe samples`**: Manages Stripe Samples, which are complete examples for new integrations.
    *   **`samples create`**: Creates a local copy of a sample.
        *   `/cli/intro_stripe_samples.md`
        *   `/cli/samples/create.md`
    *   **`samples list`**: Lists available Stripe Samples.
        *   `/cli/intro_stripe_samples.md`
        *   `/cli/samples/list.md`
*   **`stripe serve`**: Starts an HTTP server to serve static files, useful for working with Stripe Samples.
    *   *(Mentioned in `/cli/intro_stripe_samples.md`)*
*   **`stripe terminal quickstart`**: Helps you get started quickly with Stripe Terminal and the Verifone P400 reader.
    *   `/cli/intro_additional_commands.md`
    *   `/cli/terminal/quickstart.md`

### CLI Configuration & Information

*   **`stripe completion`**: Sets up autocompletion for Bash and ZSH shells on macOS and Linux.
    *   `/cli/completion.md`
*   **`stripe help`**: Provides help documentation for any command in the CLI.
    *   `/cli/intro_additional_commands.md`
    *   `/cli/help.md`
*   **`stripe version`**: Displays the version of the Stripe CLI and checks for software updates.
    *   `/cli/version.md`
*   **`stripe feedback`**: Provides information on how to give feedback for the Stripe CLI.
    *   `/cli/intro_additional_commands.md`
    *   `/cli/feedback.md`

### Advanced Usage & Information

*   **Global Flags**: Details common flags applicable to most Stripe CLI commands, such as `--api-key`, `--color`, `--config`, `--device-name`, `--help`, `--log-level`, `--project-name`, and `--version`.
    *   `/cli/flags.md`
*   **Using with Docker**: Explains how to run the Stripe CLI in a Docker container, including environment variables and using the `--api-key` flag.
    *   `/cli/intro_further_information.md`
    *   `/cli/docker.md`
*   **Telemetry**: Describes the CLI's telemetry feature, what data is collected, why it's collected, and how to opt out.
    *   `/cli/intro_further_information.md`
    *   `/cli/telemetry.md`
*   **License**: Provides information about the Stripe CLI's license.
    *   `/cli/license.md`