1.1.1 • Published 4 years ago

spaceshuttle-deploy v1.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

🚀 spaceshuttle-deploy

About

spaceshuttle-deploy is a command-line tool for easy deploy of your code to a server. The tool wraps around ssh2-sftp-client (developed by jyu213 and theophilusx) to create a convenient way to deploy. Originally developed to be used with npx to easily configure a build and deploy pipeline with npm run.

Usage with npx

npx spaceshuttle-deploy [options]
# option format: <key>=<value>

Usage with npm install globally

npm install -g spaceshuttle-deploy

and then...

spaceshuttle-deploy [options]
# option format: <key>=<value>

Example usage

npx spaceshuttle-deploy host=sftp.yourhost.com privateKey=~/.ssh/id_rsa serverPath=www

Note: npx can be neglected if spaceshuttle-deploy is installed globally

Command-line options

Options are formatted <key>=<value> and can be used in combination separated by space

  • host - URL to server
  • port - server port
    • default: 22
  • username - username used to authenticate you
  • password - password used to authenticate you
  • privateKey - local path to your private key user to authenticate you (recommended)
  • passphrase - passphrase used together with private key to authenticated you
    • default: empty string ('') if private key is specified
  • localPath - path to directory which you want to deploy
    • default: current terminal path
  • serverPath - path to directory on server which you want to deploy to
    • default: empty string (''), root of server

sftp.json options

Same options as for the command line can be set using sftp.json and should be present in the same directory as your terminal is pointing when running spaceshuttle-deploy. Note that any options set in the command-line will override sftp.json. Example of such file could look like this:

{
  "host": "sftp.yourserver.com",
  "port": 4444,
  "localPath": "dist",
  "serverPath": "www",
  "username": "youruser",
  "password": "******"
}
1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago