-
Notifications
You must be signed in to change notification settings - Fork 29
azion_create_function
GitHub Action edited this page Jan 5, 2026
·
1 revision
Creates a new serverless function
Creates a function based on given attributes to create a serverless code for Applications
azion create function [flags]
$ azion create function --name misfunction --code ./code/function.js --active false
$ azion create function --name with args --code ./code/function.js --args ./args.json --active true
$ azion create function --file "create.json"
--active string Whether the function is active or not
--args string Path to the function's arguments JSON file
--code string Path to the function's code
--execution-environment string Either 'edge_application' or 'edge_firewall'
--file string Given file path to create a function; you can use - for reading from stdin
-h, --help Displays more information about the create function command
--name string The function's name
-c, --config string Sets the Azion configuration folder for the current command only, without changing persistent settings.
-d, --debug Displays log at a debug level
--format string Changes the output format passing the json value to the flag
-l, --log-level string Set the logging level, "debug", "info", or "error". (default "info")
--no-color Changes the output format passing the json value to the flag
--out string Exports the output to the given <file_path/file_name.ext>
-s, --silent Silences log completely; mostly used for automation purposes
--timeout int Defines how much time in seconds the CLI will wait before timing out from the HTTP connection (default 50)
-t, --token string Saves a given Personal Token locally to authorize CLI commands
-y, --yes Answers all yes/no interactions automatically with yes
- azion create - Creates a new resource