Skip to content

ltebean/seaport-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 server

After setup the server, make seaport-client point to the server by:

seaport config -h http://localhost:8080

Switch profile

Each profile has its own config, you can switch profile by:

seaport profile -n profileName

Create a user

seaport signup -n username -p password

Once 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 password

Once 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 TestApp

After 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 versionNumber

Alternatively, 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

About

Seaport client tool to help to publish packages to server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published