Grabware

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

Download

Official site: openfaas.com

About Official CLI for OpenFaaS

## faas-cli

[![Build Status](https://travis-ci.com/openfaas/faas-cli.svg?branch=master)](https://travis-ci.com/openfaas/faas-cli)

[![Go Report Card](https://goreportcard.com/badge/github.com/openfaas/faas-cli)](https://goreportcard.com/report/github.com/openfaas/faas-cli)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

[![OpenFaaS](https://img.shields.io/badge/openfaas-serverless-blue.svg)](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

  1. Click Download — the developer's official website opens in a new tab.
  2. Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
  3. Prefer the command line? With Chocolatey you can install and update it with: choco install official-cli-for-openfaas
  4. Open Official CLI for OpenFaaS once it finishes installing.
How to install Windows software with Chocolatey

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