Home > Software > Webdevelopment > Docker > Official CLI for OpenFaaS
Details
- Package ID
- faas-cli
- Version
- 0.18.18
- Downloads
- 24959
- Website
- https://www.openfaas.com/
Summary
OpenFaaS® makes it simple to turn anything into a serverless function that runs on Linux or Windows through Docker Swarm or Kubernetes.
Description
faas-cli
This is a CLI for use with OpenFaaS - 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. 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
TL;DR - Introductory tutorial
Blog: Coffee with the FaaS-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 directoryfaas-cli login- stores basic auth credentials for OpenFaaS gateway (supports multiple gateways)faas-cli logout- removes basic auth credentials for a given gatewayfaas-cli up- a combination ofbuild/push and deployfaas-cli build- builds Docker images from the supported language typesfaas-cli push- pushes Docker images into a registryfaas-cli deploy- deploys the functions into a local or remote OpenFaaS gatewayfaas-cli remove- removes the functions from a local or remote OpenFaaS gatewayfaas-cli invoke- invokes the functions and reads from STDIN for the body of the requestfaas-cli store- allows browsing and deploying OpenFaaS store functionsfaas-cli secret- manage secrets for your functionsfaas-cli auth- (alpha) initiates an OAuth2 authorization flow to obtain a cookie
FaaS-CLI Developers / Contributors
See contributing guide.
License
This project is part of OpenFaaS and is licensed under the MIT License.
Maintainer’s Note
I produce and maintain Chocolatey packages in my spare time, for free. If you use my packages, and appreciate the time and effort I put into making and maintaining them, please consider making a small donation. Thank-you!