firebase-tools
Advanced tools
Comparing version 0.0.6 to 0.1.0
@@ -40,54 +40,2 @@ var auth = require('./auth'), | ||
}); | ||
}, | ||
showHelp: function() { | ||
this.showVersion(); | ||
console.log('Usage: firebase <command>\n' + | ||
'\n' + | ||
' Available commands are:\n' + | ||
'\n' + | ||
' login\n' + | ||
' Authenticates with the Firebase servers and stores an access token locally.\n' + | ||
' All commands that require authentication use this if no valid access token\n' + | ||
' exists.\n' + | ||
' --email The email address of the account to attempt to log in with.\n' + | ||
' --password The password of the account to attempt to log in with.\n' + | ||
'\n' + | ||
' logout\n' + | ||
' Invalidates and destroys any locally stored access tokens.\n' + | ||
' -d Optional flag to delete the settings file.\n' + | ||
'\n' + | ||
' list\n' + | ||
' Lists the Firebases available to the currently logged in user.\n' + | ||
'\n' + | ||
' app init\n' + | ||
' Initializes a Firebase app in the current directory.\n' + | ||
' -f, --firebase The name of the Firebase to initialize the app with.\n' + | ||
' -p, --public A directory containing all of the app\'s static files that\n' + | ||
' should deployed to Firebase Hosting. Defaults to the current\n' + | ||
' directory.\n' + | ||
' -r, --rules An optional file that contains security rules for the\n' + | ||
' Firebase.\n' + | ||
'\n' + | ||
' app bootstrap\n' + | ||
' Creates a new Firebase app from a number of predetermined templates to\n' + | ||
' quickly get a project up and running. Creates a new folder named after the\n' + | ||
' Firebase it is initialized with.\n' + | ||
' -f, --firebase The name of the Firebase to initialize the app with.\n' + | ||
' -t, --template The name of the template to initialize the app with.\n' + | ||
'\n' + | ||
' app deploy\n' + | ||
' Publishes the app in the current directory to Firebase Hosting. If a file\n' + | ||
' containing the security rules has been provided, these are uploaded to the\n' + | ||
' server.\n'); | ||
}, | ||
showVersion: function() { | ||
console.log('\n' + | ||
'Firebase Command Line Tools\n' + | ||
'Version ' + this.version + '\n' + | ||
'https://www.firebase.com\n'); | ||
}, | ||
showCommandError: function() { | ||
console.log('\n' + | ||
'Command not found. Use `firebase --help` for a list of commands or\n' + | ||
'`firebase <command> --help` for more details\n'); | ||
} | ||
@@ -94,0 +42,0 @@ }; |
{ | ||
"name": "firebase-tools", | ||
"preferGlobal": true, | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "The Firebase Command Line Tools", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
firebase-tools | ||
============ | ||
These are the Firebase Command Line Tools for administering your account and | ||
interacting with the Firebase Hosting beta. | ||
## Installation | ||
To install, first you'll need to [sign up](https://www.firebase.com/signup/) for | ||
a Firebase account and have installed [Node.js](http://nodejs.org/) and | ||
[npm](https://npmjs.org/). Then run | ||
```shell | ||
npm install -g firebase-tools | ||
``` | ||
This will install the globally accessible command `firebase` | ||
## Commands | ||
The command `firebase --help` lists the available commands and | ||
`firebase <command> --help` shows more details. | ||
```shell | ||
Firebase Command Line Tools | ||
Version 0.0.5 | ||
https://www.firebase.com | ||
Usage: firebase <command> | ||
Available commands are: | ||
bootstrap | ||
Creates a new Firebase powered app from a number of prebuild templates to | ||
quickly get a project up and running. This creates a new folder and prompts | ||
you through all the required settings. | ||
deploy | ||
Deploys the current app to Firebase Hosting and creates your subdomain on | ||
firebaseapp.com if it doesn't exist already. | ||
init | ||
Initializes an existing Firebase app in the current directory and prompts | ||
you through configuring it for firebaseapp.com. | ||
list | ||
Lists the Firebases available to the currently logged in user. | ||
login | ||
Logs the user into Firebase. All commands that require login will prompt | ||
you if you're not currently logged in. | ||
logout | ||
Logs the user out of Firebase. | ||
--help | ||
Shows this help screen. Use `firebase <command> --help` for more detailed | ||
help instructions. | ||
--version | ||
Displays the current version. | ||
``` | ||
For a quick start guide, see https://www.firebase.com/docs/hosting.html | ||
## Credit | ||
Inspired by [Luke Vivier](https://github.com/lvivier)'s Firebase command line tools. |
Sorry, the diff of this file is not supported yet
40480
10
985
63