- Last updated: August 8, 2024 (Strapi v4 era)
- 4 min read
Introducing a command line interface (CLI) for Strapi Cloud
We’ve got some great updates for you. First, meet Cloud CLI. This feature lets you deploy your Strapi projects directly from the terminal, making the process straightforward and efficient. Second, you can link your existing project to Strapi Cloud via the CLI. But that's not all — Strapi is also increasing its trial limit so you can enjoy 5 trial projects at the same time.
Cloud CLI - The fastest way to deploy your Strapi projects
We’re excited to announce Cloud CLI, a new feature that lets you deploy your Strapi projects directly from the terminal. This feature makes your deployment process faster and easier. It's a first step towards bringing Strapi CMS and Cloud closer together, offering a powerful Platform-as-a-Service (PaaS) all while providing the best developer experience by simplifying the deployment process.
Cloud CLI is built for developers
If you’re new to Strapi and prefer working in the terminal, Cloud CLI is for you. It’s designed to make deploying your projects as straightforward as possible.
Key features of Cloud CLI
Cloud CLI simplifies how you interact with Strapi Cloud by bringing the deployment process directly into your terminal. Here’s a closer look at its features:
Enhanced create-strapi-app command
We’ve added a new step to the create-strapi-app command so you can start your Strapi Cloud project right from the terminal. Here’s how it works:
- Initialize: Run create-strapi-app to set up your new Strapi project.
- Cloud setup: During the setup, you’ll now have the option to link your project with Strapi Cloud, streamlining your path from local development to cloud deployment.
This means you can get started with Strapi Cloud without ever leaving your terminal, making the entire process seamless and efficient.
Four core commands
Deploy Deploy your Strapi project to the cloud with a single command. You'll get build logs right in the terminal, so you always know what's happening. This reduces deployment time from minutes to mere moments, allowing you to see your project live almost instantly.
Login Log in to your Strapi Cloud account directly from the terminal. This simplifies authentication, ensuring you can manage your projects without switching between the terminal and a browser.
Logout Log out of your Strapi Cloud account easily. This enhances security by managing your session directly from the terminal.
Link Link your current local project to one of your Cloud projects from the CLI and deploy already set-up projects directly from the terminal.
Why use Cloud CLI?
Using Cloud CLI comes with some solid benefits. It speeds up your deployment process, getting your project live quickly. It also improves efficiency by letting you manage everything directly from the terminal. Plus, it simplifies things, making it easy to explore and use Strapi Cloud’s features without any hassle.
Enjoy the full benefits of Strapi Cloud after deployment
After deploying with Cloud CLI, you get a complete setup for running Strapi in production. This includes a database, email provider, and CDN, all optimized for Strapi. You don’t have to worry about managing any of the infrastructure—it just works.
You can launch your Strapi applications quickly by deploying code from your GitHub repositories, choosing your region, and getting started with generous usage limits. This means you can deploy your project in minutes instead of days, saving you time and effort.
You stay in control of your environment. Connect to your preferred stack, collaborate with your team, manage custom domains, monitor real-time logs, and swap out any component of your tech stack as needed. This flexibility ensures you won’t be stuck with outdated technology and can adapt as needed. With Strapi Cloud, you get a reliable, efficient, and scalable setup that’s ready for production.
What’s coming next
We’re working on more features for Cloud CLI. Here’s what you can look forward to:
- Rollback Enablement: The upcoming update to the Cloud CLI will include the ability to roll back changes, providing an added layer of control and safety for developers.
- Environment Management: Once the multi-environment feature is released, the CLI will allow users to list and link different environments, enhancing the management and deployment process across various stages of development.
Deploy more projects for free
We recognize that one project is often not enough, especially when you need a reliable DTAP (Development, Testing, Acceptance, Production) setup. It’s important to test your setup thoroughly before making a decision. That’s why we’re pleased to announce that starting today, everyone can access 5 free trial projects with Strapi Cloud. This will allow you to fully evaluate and ensure that Strapi Cloud is the right choice for your tech stack.
Get started today!
Ready to try Cloud CLI? Check out npx create-strapi-app in your terminal and start deploying today. We can’t wait to see what you build! Happy coding!
Niklas Winkels is Senior Product Marketing Manager at Strapi, the leading open-source Headless CMS. He's a developer relations expert with a background in demand generation. In his free time, Niklas loves making music, travelling, and surfing 🏄♂️