SDK for UbiFunctions
Create a local UbiFunction
Usage: ubidots functions new [OPTIONS]
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --name TEXT The name of the project folder. โ
โ [default: my_function] โ
โ --runtime [python3.9:lite|python3.9:base|python3.9:f The runtime for the function. โ
โ ull|python3.11:lite|python3.11:base|python [default: nodejs20.x:lite] โ
โ 3.11:full|nodejs20.x:lite|nodejs20.x:base] โ
โ --cors --no-cors Flag to enable Cross-Origin Resource โ
โ Sharing (CORS) for the function. โ
โ [default: no-cors] โ
โ --cron TEXT Cron expression to schedule the function โ
โ for periodic execution. โ
โ [default: * * * * *] โ
โ --methods TEXT The HTTP methods the function will respond โ
โ to. โ
โ [default: GET] โ
โ --raw --no-raw Flag to determine if the output should be โ
โ in raw format. โ
โ [default: no-raw] โ
โ --interactive -i Enable interactive mode to select options โ
โ through prompts. โ
โ --verbose -v Enable verbose output. โ
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏUbiFunction directory structure
main file
main filemanifest file
manifest fileStart the local development environment
Push a local UbiFunction
Pull an UbiFunction from Ubidots.
Example
Create the local UbiFunction
Starting the UbiFunction
Running the UbiFunction
Pushing the UbiFunction to Ubidots
Pulling the UbiFunction from Ubidots
Last updated
Was this helpful?