An open API service indexing awesome lists of open source software.

https://github.com/commercelayer/commercelayer-cli-plugin-microstore


https://github.com/commercelayer/commercelayer-cli-plugin-microstore

commercelayer

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# @commercelayer/cli-plugin-microstore

Commerce Layer CLI Microstore plugin

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@commercelayer/cli-plugin-microstore.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-microstore)
[![Downloads/week](https://img.shields.io/npm/dw/@commercelayer/cli-plugin-microstore.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-microstore)
[![License](https://img.shields.io/npm/l/@commercelayer/cli-plugin-microstore.svg)](https://github.com/commercelayer/cli-plugin-microstore/blob/master/package.json)

* [Usage](#usage)
* [Commands](#commands)

## Usage

```sh-session
commercelayer COMMAND

commercelayer [COMMAND] (--help | -h) for detailed information about plugin commands.
```

To install as a Commerce Layer CLI plugin run the following command:

```sh-session
$ commercelayer plugins:install microstore
```

## Commands

* [`commercelayer microstore`](#commercelayer-microstore)

### `commercelayer microstore`

Create Microstore URLs.

```sh-session
USAGE
$ commercelayer microstore (-a ) -S [--open] [-A] [-I -C]

FLAGS
-A, --all activate the Buy All button
-C, --cart activate the Cart application
-I, --inline disable redirect to Cart application
-S, --skuListId= (required) the sku list id
-a, --accessToken= (required) custom access token to use instead of the one used for login
--open open microstore URL in default browser

DESCRIPTION
create Microstore URLs

EXAMPLES
$ commercelayer microstore -S

$ cl microstore -S --all --cart

$ cl microstore -S --cart --inline --open
```

_See code: [src/commands/microstore/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-microstore/blob/main/src/commands/microstore/index.ts)_