CLI
The Velocity CLI is currently the only way you can create and invoke Velocity functions. I will be adding custom function invocation URLs pretty soon.
Last updated
The Velocity CLI is currently the only way you can create and invoke Velocity functions. I will be adding custom function invocation URLs pretty soon.
Last updated
Download the precompiled binary for your operating system on the release page
Let's use the CLI to create a function that just returns hello world. Create a file called function.js
and input the following code
Next, you have to create a zip file containing this code. If you are on windows with poershell, use the following command
If you are on Linux/Mac, use the following command
Next, create a function by running the following command
NOTE: By default, the CLI attempts to connect to my self-hosted Manager API which is definitely not guaranteed to be available. To pass in your custom Manager URL, use the --manager-url
flag.
To list all the functions you have deployed, run the following command
To invoke a function, run the following command
To delete a function, run the following command