See https://docs.joinpeertube.org/maintain/tools#remote-tools
cd peertube-root
yarn install --pure-lockfile
cd apps/peertube-cli && yarn install --pure-lockfile
cd peertube-root
npm run dev:peertube-cli
cd peertube-root
npm run build:peertube-cli
cd peertube-root
node apps/peertube-cli/dist/peertube-cli.js --help
cd peertube-root
(cd apps/peertube-cli && npm version patch) && npm run build:peertube-cli && (cd apps/peertube-cli && npm publish --access=public)