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.
Installing the CLI
Creating a function
module.exports = (args) => {
return {
hello: "world",
}
}Compress-Archive -LiteralPath .\function.js -DestinationPath code.zipzip code.zip function.js.\cli.exe create --name demo-func --file-path code.zip --handler function
Listing functions

Invoking a function

Deleting a function

Last updated