Giter VIP home page Giter VIP logo

stamplay-cli's Introduction

Stamplay-cli

Build Status npm version

This is the Stamplay Command Line (CLI) Tool. They can be used to:

  • Administer your Stamplay account
  • Interact with Stamplay Platform, our product to host your static HTML, JS, CSS, images, etc.

To get started with the Stamplay CLI, read through our hosting quickstart guide.

Installation

To install the Stamplay CLI, you first need to sign up for a Stamplay account.

Then you need to install Node.js and npm. Note that installing Node.js should install npm as well.

Once npm is installed, get the Stamplay CLI by running the following command:

npm install -g stamplay-cli

This will provide you with the globally accessible stamplay command.

Commands

deploy

options:
   --message "msg", -m "msg"  Use the given "msg" as the deploy message.

Deploys the current app to Stamplay and creates a new version.

Uploads the directory detailed by the "public" attribute in the stamplay.json settings file under. The app must contain an entry point file called index.html at root level of your public directory. If no file is found you'll be prompted to create it.

download

options:
   --proxy "address"       The requests will be sent via a connection to the proxy server.

Download the current active version of an app.

You will be prompted to type appId and apiKey, if you don't have it go into your app on https://editor.stamplay.com and get them under Backend -> ApiKey section.

init

options:
   --proxy "address"       The requests will be sent via a connection to the proxy server.

Initializes an existing Stamplay app in the current directory and prompts you to configuring it for stamplayapp.com.

Running stamplay init in an existing repository is safe. It will not overwrite things that are already there.
It only Generates a stamplay.json file in the current directory with all the settings required to deploy it. If you don't have appId and apiKey yet open https://editor.stamplay.com and create a new app.

start

options:
   --port, -p		       Specifies a custom port where the local server must run.
   --spa                   Enable Single Page Application mode (Rewrite all URLs to index.html,
                           use it to support pretty URLs with AngularJS HTML5 Mode).

Start serving your app on your localhost. The public folder will be served at the following address http://localhost:8080.

open

Opens the current Stamplay app's stamplayapp.com subdomain in a browser.

rollback

Restore in production a previously deployed version. You'll be prompted to pick one of your previous deploys from a list.

Help

The command stamplay --help lists the available commands.

stamplay-cli's People

Contributors

mirkods avatar claudiopetrini avatar giuliano84 avatar

Watchers

pbb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.