New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spaship-beta

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spaship-beta

A command line interface for SPAship!

  • 2.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

SPAship CLI

A command line interface for SPAship.

oclif Version Downloads/week License

Usage

$ npm install -g spaship-beta
$ spaship COMMAND
running command...
$ spaship (-v|--version|version)
spaship-beta/2.0.1 darwin-x64 node-v14.18.1
$ spaship --help [COMMAND]
USAGE
  $ spaship COMMAND
...

Commands

spaship help [COMMAND]

display help for spaship

USAGE
  $ spaship help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

spaship init

Initialize a SPAship config file for your app.

USAGE
  $ spaship init

OPTIONS
  -b, --builddir=builddir  path of your SPAs artifact. Defaults to 'buildDir' if specified in the spaship.yaml.
  -d, --dist=dist          the URL path for dist folder
  -m, --file=file          the URL path for .spaship file

DESCRIPTION
  Without arguments, init will ask you a few questions and generate a .spaship config file.

EXAMPLES
  $ spaship init --file=/home/shranand/Documents/one-platform/packages/home-spa 
  --dist=/home/shranand/Documents/one-platform/packages/home-spa/dist
  $ spaship init --builddir=build

See code: src/commands/init.js

spaship login

Authenticate and Authorize users inorder to deploy SPA

USAGE
  $ spaship login

OPTIONS
  -s, --server=server  orchestrator-base-url it is responsible for loading file from cli
  -t, --token=token    jwt token for authentication

DESCRIPTION
  user access token && server url is saved inside config file(.spashipsessionrc.yaml) .
  spaship login command can be copied from web-ui.

EXAMPLES
  $ spaship login --token=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiS 
  --server=http://dev.api.apps.int.spoke.preprod.us-west-2.aws.paas.redhat.com
  Here server refer to api Base-URL && token refer to jwt access token for authorization

See code: src/commands/login.js

spaship pack

pack the distribution folder

USAGE
  $ spaship pack

DESCRIPTION
  create and save the zip file of distribution folder which is consist of SPA content inside tmp.

EXAMPLE
  $ spaship pack

See code: src/commands/pack.js

spaship upload [ZIP]

deploy to a SPAship host

USAGE
  $ spaship upload [ZIP]

ARGUMENTS
  ZIP  An archive (zip) file containing SPA static assets and a .spaship configfile.

DESCRIPTION
  Send zip file containing a SPA to a SPAship host for deployment.

EXAMPLES
  $ spaship upload your-app-1.0.0.zip #here your-app-1.0.0.zip refer to zip created by pack command
  $spaship upload # will prompt to enter your-app-1.0.0.zip
  If no your-app-1.0.0.zip is provided it will zip and upload it.

See code: src/commands/upload.js

Writing tests

Tests are written using oclif's testing tools. See oclif's testing documentation for more.

Keywords

FAQs

Package last updated on 28 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc