Example 2 – the Apex deployment tool

In this second example, we will demonstrate how to deploy all functions, specific functions, and function deployment, using wild card sign where it will include all matching functions from the mentioned directory.

Deploy all functions in the current directory:

$ apex deploy

Deploy all functions in the directory ~/dev/myapp:

$ apex deploy -C ~/dev/myapp

Deploy specific functions:

$ apex deploy auth
$ apex deploy auth api

Deploy all functions that have a name starting with auth:

$ apex deploy auth*

Deploy all functions ending with _reporter:

$ apex deploy *_reporter

Deploy from an existing zip file:

$ apex build auth > /tmp/auth.zip
$ apex deploy auth --zip /tmp/auth.zip
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.1.158