CLI COMMAND LIST
Library
Description: Lists the library out, and gives detailed information about a function.
Flags:
Flag | Function |
---|---|
none |
List the library functions, if you have any broken deployments also lists them out |
-d | details |
Lists the specific details of one library, gives in-depth information. |
-r | readme |
when used with -d shows the readme of the library item |
Examples:
Apikey
Description: Sets the apikey in the local .jellyfaas
file.
Example:
Token
Description: Generates a token to use when calling out to functions.
Example:
Zip
Description: Zips up a function directory ready for deployment, and optionally deploys.
Flags:
Flag | Function |
---|---|
-s | source |
Specifies the name of the directory to zip up, this can be a fully qualified path |
-o | overwrite |
If set to true, will overwrite the exiting zip file if it already exits. |
-d | deploy |
If set to true, will deploy the function into JellyFaaS |
-w | wait |
If set to true will wait till deployment completes (success or fail). |
Examples:
Create
Description: Create the boiler plate code to create a function, Supports the following languages: go,php,java,dotnet,python,ruby,node
Flags:
Flag | Function |
---|---|
-n | name |
Name of the function |
-l | language |
Language of the function, one of go|php|java|dotnet|python|ruby|node |
-d | destination |
Destination of the function |
-a | always |
Always create function, even if directory exists |
Examples:
Spec
Description: Creates the required OpenApi Spec to place in the jellyspec.json
file from json. This allows you to easily create the required data from json data that you have created/used during function development.
Flags:
Flag | Function |
---|---|
-j | json |
Input is json , currently this is the only supported input. |
-r | raw |
Raw output, allowing you to pipe or pbcopy for example. |
-f | flat |
output is one long string, not 'pretty printed' |
Examples:
Bad builds
Description: List any bad builds you have attempted to deploy (and the reason why), if you have any you can list them with list
or attempt to clean up and remove any unsuccessful deployed builds, if this is not successful please contact support and we can help and explain what went wrong.
List
Flags:
Flag | Function |
---|---|
-b | buildId |
Display information on a specific build id. |
Examples:
Clean
Flag | Function |
---|---|
-b | buildId |
Display information on a specific build id. |
Exists
Description: Checks if a function id 'shortname' exists.
List
Flags:
Flag | Function |
---|---|
-n | name |
shortname of the function from the jellyspec.json file. |
Examples: