Commerce Layer CLI
The official Commerce Layer CLI which helps you to manage your Commerce Layer applications right from the terminal.
What is Commerce Layer?
Commerce Layer is a headless commerce platform and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, or IoT device, with ease. Perfect fit for the best-of-breed CMSs, static site generators, and any other tools you already master and love, our blazing-fast and secure API will help you make your content shoppable on a global scale.
Table of contents
Run the command below to install the CLI using your favorite package manager:
npm install -g @commercelayer/commercelayer-cli
yarn global add @commercelayer/commercelayer-cli
More installation options, coming soon...
Installing the CLI provides access to the
$ (commercelayer | clayer | cl) COMMAND $ commercelayer (-v | version | --version) to check the version of the CLI you have installed. $ commercelayer help [COMMAND] or $ commercelayer [COMMAND] (--help | -h) for detailed information about CLI commands.
Kindly check out this quick step-by-step example which will show you how to place an order using this CLI.
The Commerce Layer CLI supports the following commands:
commercelayer applications- Manage login to CLI applications.
commercelayer help- Display help for commercelayer.
commercelayer plugins- Manage CLI plugins.
commercelayer util- Decode a Commerce Layer JWT.
The Commerce Layer CLI currently supports the following plugins:
You can run the command below to get a list of all available CLI plugins:
You can run the command below to update all available CLI plugins:
git clone https://github.com/<your username>/commercelayer-cli.git && cd commercelayer-cli
Make your changes and create a pull request (learn how to do this).
Someone will attend to your pull request and provide some feedback.
Request an invite to join Commerce Layer's Slack community (kindly scroll down to the bottom of the page).
Create an issue in this repository.
Ping us on Twitter.
This repository is published under the MIT license.