Windows · Developer Tools
Official CLI for OpenFaaS
OpenFaaS® makes it simple to turn anything into a serverless function that runs on Linux or Windows through Docker Swarm or Kubernetes.
Version 0.18.18 · by Alex Ellis
Official site: openfaas.com
About Official CLI for OpenFaaS
## faas-cli
[](https://travis-ci.com/openfaas/faas-cli)
[](https://goreportcard.com/report/github.com/openfaas/faas-cli)
[](https://opensource.org/licenses/MIT)
[](https://www.openfaas.com)
This is a CLI for use with [OpenFaaS](https://github.com/openfaas/faas) - a serverless functions framework for Docker & Kubernetes.
> Before using this tool please setup OpenFaaS by following instructions over on the main repo.
The CLI can be used to build and deploy functions to [OpenFaaS](https://github.com/openfaas/faas). You can build OpenFaaS functions from a set of supported language templates (such as Node.js, Python, CSharp and Ruby). That means you just write a handler file such as (handler.py/handler.js) and the CLI does the rest to create a Docker image.
Demo: [ASCII cinema](https://asciinema.org/a/141284)
### TL;DR - Introductory tutorial
[Blog: Coffee with the FaaS-CLI](https://blog.alexellis.io/quickstart-openfaas-cli/)
### Run the CLI
The main commands supported by the CLI are:
* `faas-cli new` - creates a new function via a template in the current directory
* `faas-cli login` - stores basic auth credentials for OpenFaaS gateway (supports multiple gateways)
* `faas-cli logout` - removes basic auth credentials for a given gateway
* `faas-cli up` - a combination of `build/push and deploy`
* `faas-cli build` - builds Docker images from the supported language types
* `faas-cli push` - pushes Docker images into a registry
* `faas-cli deploy` - deploys the functions into a local or remote OpenFaaS gateway
How to install Official CLI for OpenFaaS
- Click Download — the developer's official website opens in a new tab.
- Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
- Prefer the command line? With Chocolatey you can install and update it with: choco install official-cli-for-openfaas
- Open Official CLI for OpenFaaS once it finishes installing.
Frequently asked questions
Is Official CLI for OpenFaaS free to download?
Yes. The Download button sends you to openfaas.com, the developer's official site, where Official CLI for OpenFaaS is available to download. Grabware doesn't host or modify any files.
What is the latest version of Official CLI for OpenFaaS?
The version listed here is 0.18.18, published /Date(1792. The developer's site always has the newest release.
How do I install Official CLI for OpenFaaS from the command line?
With Chocolatey, run: choco install official-cli-for-openfaas. This installs it from the official source and keeps it updated.
Is Official CLI for OpenFaaS safe?
Official CLI for OpenFaaS downloads directly from the developer. As always, scan the installer with your antivirus and choose Custom setup to skip any bundled extras.
Alternatives to Official CLI for OpenFaaS
More
March 2014 servicing stack update for Windows 8.1 and Windows Server 2012 R2 (KB2919442)The update fixes some issues in the servicing stack of Windows 8.1 and Windows Server 2012 R2.Chocolatey Compatibility ExtensionExtension package to provide compatibility with older versions of Chocolatey
Update for Universal C Runtime in Windows (KB2999226)Update for Universal C Runtime (CRT) in Windows. Before you install this update, check out the prerequisites section.