0.1.1 • Published 2 years ago

sepet-cli v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@dvn/sepet-cli

Installation

npm i sepet-cli -g

Usage

sepet upload -b bucket-name-here .
sepet upload -b bucket-name-here ./tsconfig.json
sepet upload -b bucket-name-here ./src/commands

Development

This CLI is created via https://oclif.io/docs/introduction.

Commands can be run as shown below during development.

  • Help: ./bin/dev --help
  • Version: ./bin/dev --version
  • Upload file: ./bin/dev upload

Sample command to upload files using a local sepet api with custom headers;

./bin/dev upload \
  --endpoint localhost \
  --port 1005 \
  --headers Api-Key=some-api-key \
  --headers "Authorization=Bearer some-token-data" \
  --version 1.2.3 \
  --bucket swh-test \
  ./package.json

Sample command to update bucket version a local sepet api with custom headers;

./bin/dev update-version \
  --endpoint localhost \
  --port 1005 \
  --headers Api-Key=some-api-key \
  --headers "Authorization=Bearer some-token-data" \
  --id bucket-id-here \
  1.2.3

After npm run build is ran, the commands can also be run via ./bin/run upload.

Publishing a new version

  • npm version (major|minor|patch) # bumps version, updates README, adds git tag
  • npm publish