open-index/open-npm huggingface dataset:
npm package: @substrate/playground-cli
Description: Substrate Playground CLI
Author: Julien Eluard
Latest version: 2.3.1

A simple CLI allowing to locally start a playground template. Docker must be available on the local machine.

<p align="center">
  <img width="600" src="https://cdn.rawgit.com/paritytech/substrate-playground/develop/cli/assets/no-web.svg">
</p>

<p align="center">
  <img width="600" src="https://cdn.rawgit.com/paritytech/substrate-playground/develop/cli/assets/web.svg">
</p>

# Usage

```shell
npm install -g @substrate/playground-cli
substrate-playground
# or
npx @substrate/playground-cli
```

## Options

By default a headless docker image is started and can be manipulated via the current terminal.
A web based IDE will be launched if the `--web` option is provided.

The template selection can be bypassed using the `--template` option.

Finally the environment used to fetch the template list can be set using `--env`. It defaults to `staging`.

```shell
substrate-playground --web --template=node-template
```

# Publish

```shell
git pull --rebase
yarn clean && yarn && yarn build
yarn login
yarn publish
```

# Development

```shell
yarn
node index.js
```