---
title: "How do you set up a headless ecommerce platform from a single command? – Spree Commerce"
url: https://spreecommerce.org/cpt_faq/how-do-you-set-up-a-headless-ecommerce-platform-from-a-single-command/
---

[Blog home](https://spreecommerce.org/blog.md)

April 10, 2026

# How do you set up a headless ecommerce platform from a single command?

A complete headless stack needs a backend API, a frontend storefront, and deployment configuration in one repository. Spree Commerce provides a single CLI command that scaffolds the full stack (REST API backend, Next.js storefront, Docker configuration) into one working repository. From there, teams deploy to any cloud provider or on-premise infrastructure, with the customer-facing layer running on TypeScript end to end.

See also:

- [Announcing Spree Commerce 6: Open Source Marketplace and B2B Wholesale With AI Agents](https://spreecommerce.org/announcing-spree-commerce-6.md)
- [Announcing Spree Commerce 5.6: Gated Storefronts, a Wholesale Portal, and a Localized Admin](https://spreecommerce.org/announcing-spree-commerce-5-6.md)
- [Announcing Spree Commerce Sandboxes: Free Cloud Test Stores](https://spreecommerce.org/announcing-spree-commerce-sandbox.md)

**Written by:** [Mike Faber](https://spreecommerce.org/author/mike-faber.md) Spree Evangelist. Co-founder and CEO of Vendo.

Mike is a Spree Evangelist, promoting the platform's features and keeping the community updated on its roadmap. Mike is also a co-founder and CEO of Vendo, a major Spree contributor and provider of its Enterprise Edition, getting you more features, more security, more integrations so you can go live faster and get all the latest improvements first.
