Skip to main content

Composable CLI for frontend experiences

The Composable CLI is a command line tool designed to make it easy for you to build Elastic Path-powered frontend experiences. It also enables you to configure various products and integrations provided by Elastic Path.

You need to use Node.js to install Composable CLI and manage its dependencies.

This documentation explains how to use Composable CLI for developing storefronts.

Features

Composable CLI accelerates your time to market by providing the following features:

  • Create new Next.js storefronts
  • Easy setup and configuration of Elastic Path Products and Integrations

Prerequisites

  • Node.js v18 or later
  • You've installed a Node.js package manager: either npm, Yarn 1.x, or pnpm.
  • You've installed Git

Installation

Composable CLI is available as an npm package: composable-cli.

In your terminal, run the following command to install Composable CLI:

npm install -g composable-cli

You can verify that Composable CLI is installed correctly by running the following command:

ep --version

Composable CLI can execute commands using either it primary command composable-cli or its alias ep.

Authentication

To use Composable CLI, you need to authenticate with Elastic Path. You can do this by running the following command:

ep login

This command will prompt you for your username and password. After you authenticate, Composable CLI will keep you sign in. If you wish to sign out, you can run the following command:

ep logout