seaport-client v2.0.6
Seaport client tool to help to publish packages to server.
Before all. you need to setup your own server, you can find the instruction here: https://github.com/ltebean/seaport-server
##Usage:
Run seaport -h to print the usage
Usage: seaport [options] [command]
Commands:
config [options] config server address
signup [options] signup a new user
login [options] login as existing user
create_app [options] create an app
info list the package info
publish [options] pack current folder and publish to serverAfter setup the server, make seaport-client point to the server by:
seaport config -h http://localhost:8080Switch profile
Each profile has its own config, you can switch profile by:
seaport profile -n profileNameCreate a user
seaport signup -n username -p passwordOnce you create the account, the login token will be saved to your machine, you can use seaport config to find the token.
Login as existing user
seaport login -n username -p passwordOnce log in, the token will be saved to your machine, you can use seaport config to find the token.
Create an app
seaport create_app -n TestAppAfter the app is created, the app secret will be saved locally, you can use seaport config to find it.
Publish the package
seaport publish -a appName -p packageName -v versionNumberAlternatively, you can specify the app name in your package.json, then seaport will read package name and version number from it
"seaport": {
"zipRoot": "./build",
"appName": "Test"
}This command will pack the current working directory into a zip file and publish to server
List app and package info
seaport info