# CLI

A command line interface for Shopware PWA.

# Installation

yarn global add @shopware-pwa/cli

or

npm install -g @shopware-pwa/cli

Canary version

Currently, we're releasing a canary version per every push to master branch, so in order to have newest changes and fixes just install it like this:

npm install -g @shopware-pwa/cli@canary

# Usage

Create a directory for your project and enter it

mkdir my-shopware-pwa
cd ./my-shopware-pwa

initialize project inside directory

shopware-pwa init

after this you're connected to our test shopware instance and ready to run project locally

yarn dev

Your application will be available on http://localhost:3000.
Now you have complete ShopwarePWA project running locally.

# Version update

To be sure that you have the latest version of CLI for Shopware PWA installed, you just need to reinstall the package using the same commands as for installation:

yarn global add @shopware-pwa/cli

or

npm install -g @shopware-pwa/cli

Canary version

If you want to update to canary version, just add this to update command. If you're using it please remember to update often as it's changing with master branch.

npm install -g @shopware-pwa/cli@canary

# License

MIT - see LICENSE