### Workflow
npm install gfaas
###### Create functions
```
gfaas newFunction --lang $LANGUAGE
`LANGUAGE in {go1.19, python3.9, node14, java19, cpp20}`
###### Build function
``
gfaas build function.yaml
###### Push function
``
gfaas push function.yaml
###### Deploy function
``
gfaas deploy function.yaml $PLATFORM_ID
###### Delete function
``
gfaas delete function $FUNCTION_ID
###### Show function details
``
gfaas function $FUNCTION_ID
###### Show deployed functions
``
gfaas functions
###### Show available platforms
``
gfaas platforms
``
gfaas platforms --health
###### Integrate gFaaS into existing projects with adapt functionality
``
gfaas adapt --lang $LANGUAGE
`LANGUAGE in {go1.19, python3.9, node14, java19, cpp20}`
``
npm run build
``
npm publish
``
npm run start
``
npm i gfaas -g
- Execute build-executables.sh to create executables for the different platforms. Make sure to install the necessary tools first.
``
npm i -g @vercel/ncc``
ncc build index.ts -o dist``
npm install -g pkg``
cd dist && pkg index.js
``
docker build -t registry.hub.docker.com/paulwie/gfaas-cli .
``
docker push registry.hub.docker.com/paulwie/gfaas-cli
#### Run CLI command in docker
```
docker run --rm registry.hub.docker.com/paulwie/gfaas-cli --version