Skip to content

Commit

Permalink
Adding instructions to install faas-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkhael authored and alexellis committed Jul 20, 2017
1 parent cef29ab commit ff3fd86
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ This experimental CLI can be used to and deploy functions to FaaS or to build No

> Functions as a Service is a serverless framework for Docker: [Read more on docs.get-faas.com](http://docs.get-faas.com/)
### Installing the tool

The easiest way to install the faas-cli is by doing:

```
$ curl -sSL cli.get-faas.com | sudo sh
```

Note that the tool is also available on brew. The last section also documents how to build it from source.

### Running the tool

The tool can be used to create a Docker image to be deployed on FaaS through a template meaning you only have to write a single handler file. The templates currently supported are: node and python, however you can create a FaaS function out of any process.
Expand Down Expand Up @@ -73,7 +83,7 @@ Use environmental variables for setting tokens and configuration.

You can initiate a HTTP POST via `curl`:

* with the `-d` flag i.e. `-d "my data here"`
* with the `-d` flag i.e. `-d "my data here"`
* or with `--data-binary @filename.txt` to send a whole file including newlines
* if you want to pass input from STDIN then use `--data-binary @-`

Expand Down

0 comments on commit ff3fd86

Please sign in to comment.