How to install PageShare locally?

To use it locally on your machine, go to the directory you have your web app project, built it and execute:
npx @pageshare/cli ./dist
or
npm install -g @pageshare/cli
pageshare ./dist
Replace ./dist
with a path to your built frontend project (must include index.html
file).
In order to finish the process, you need to create an account on PageShare.dev and provide your personal access token in a command as --access-token ...
or as an environment variable PAGESHARE_ACCESS_TOKEN
. Copy your access token from https://www.pageshare.dev/user/settings.
More details about all possible config parameters you can read in the documentation.