wappsto-cli
Command Line Interface for Wappsto, so that it is possible to create Wapps locally.
Install
$ npm install wappsto-cli --save-dev
Usage
Create
To create a Wapp:
npx create-wapp
It will ask for your 'username' and 'password' to Wappsto, unless you already logged in.
Here you get the option to download any exsisting Wapps or create a new Wapp.
Update
To update the Wapp:
npx update-wapp
This will upload all your files to Wappsto and download any new files created for your Wapp.
Run
To run the Wapp:
npx serve-wapp
This will run a local web server where you can test your wapp. It is default listen on port 3000.
Any notifications from your Wapp is presented in the terminal where you are running 'serve-wapp'.
Delete
To delete the Wapp:
npx delete-wapp
This will delete your Wapp locally and/or remotely.
Reinstall
To trigger a reinstall of the application run:
npx update-wapp --reinstall
Configuration
You can configure wappsto-cli by creating a 'wappsto-cli' object in your 'package.json' file like this:
{
...
"wappsto-cli": {
"foreground": "foreground",
"background": "background",
"port": "3000"
}
...
}
Valid options is:
foreground
The folder where the foreground files will be stored. Default 'foreground'.
background
The folder where the background files will be stored. Default 'background'.
port
The port the web server will serve the Wapp on. Default '3000'.
Related
License
Apache 2.0 © Seluxit A/S