Provision Laravel Cloud From the Stripe CLI
Laravel #Laravel #Stripe CLI #Laravel Cloud #DevOps #Cloud Provisioning

Provision Laravel Cloud From the Stripe CLI

3 min read Mohamed Said Mohamed Said

Laravel developers now have a powerful new way to provision and manage their Laravel Cloud infrastructure: directly through the Stripe CLI. This integration leverages Stripe Projects, a provisioning layer within the Stripe CLI, enabling developers and agents to set up compute, databases, and queues with a single command, eliminating the need to interact with dashboards.

This advancement is particularly significant for agents who previously faced a bottleneck in purchasing resources, as it required human intervention for payment processing. With the Stripe CLI, credentials are automatically handled and securely placed into your environment, while your Laravel Cloud account and dashboard remain fully accessible for any further management.

How It Works

After installing the Stripe CLI, provisioning a new Laravel Cloud application is straightforward. A single command initiates the process, which includes creating a new Laravel Cloud account or linking an existing one. It then provisions a default application environment and provides the necessary credentials.

During this process, you will be prompted to provide a name for your application, select a region, and specify a GitHub repository.

stripe projects add laravel_cloud/application

Following the initial setup, you can easily add essential resources like databases and caching layers using dedicated commands. Each command not only provisions the requested resource but also automatically updates your environment variables with the relevant connection strings.

stripe projects add laravel_cloud/database
stripe projects add laravel_cloud/cache

By the time these commands are executed, your application is live on Laravel Cloud, fully configured with a connected database and an active cache, all provisioned via your Stripe account. This streamlined workflow allows agents to scaffold Laravel applications with the same ease as developers, with credentials automatically managed.

Built-In Security

The integration with the Stripe CLI ensures enhanced security by default. Credentials are generated and directly written to your Laravel Cloud environment, bypassing manual key retrieval and the associated risks of exposing sensitive information. If you already have a Laravel Cloud account, Stripe Projects seamlessly authenticates your existing account. You can add resources to any existing project just as you would for a new one, without altering your current setup or losing dashboard access. The command stripe projects open laravel_cloud provides direct access to your Laravel Cloud environment from the CLI.

Get Started

Laravel Cloud is now available within Stripe Projects. To begin, install the Stripe CLI and then execute the following command to create your next Laravel Cloud application:

stripe projects add laravel_cloud/application

This new integration offers a more efficient and secure way for developers and agents to manage their Laravel Cloud infrastructure programmatically.

Source: Provision Laravel Cloud From the Stripe CLI

Found this useful?

Frequently Asked Questions

3 questions
Q01 What is Stripe Projects in the context of the Stripe CLI?
Stripe Projects is a provisioning layer within the Stripe CLI that allows developers and agents to spin up infrastructure and obtain working credentials programmatically, without needing to access a dashboard.
Q02 How does provisioning Laravel Cloud via the Stripe CLI enhance security?
The Stripe CLI generates credentials and writes them directly to your Laravel Cloud environment, eliminating manual key retrieval and reducing the risk of keys being exposed. It ensures credentials are secure by default.
Q03 Can I add resources to an existing Laravel Cloud project using the Stripe CLI?
Yes, if you already have a Laravel Cloud account, Stripe Projects authenticates your existing account. You can add resources to any existing project using the same commands as for a new one, and you retain full access to your dashboard.

Continue reading

More Articles

View all