@substrate/playground-cli

Substrate Playground CLI

Usage no npm install needed!

<script type="module">
  import substratePlaygroundCli from 'https://cdn.skypack.dev/@substrate/playground-cli';
</script>

README

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

Usage

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.

substrate-playground --web --template=node-template

Publish

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

Development

yarn
node index.js