Skip to content

azion_update_function

GitHub Action edited this page Jan 5, 2026 · 1 revision

azion update function

Updates a function

Synopsis

Modifies a function based on its ID to update its name, activity status, code path, and other attributes

azion update function [flags]

Examples

$ azion update function --function-id 1234 --name 'Hello'
$ azion update function --function-id 4185 --code ./mycode/function.js --args ./mycode/myargs.json
$ azion update function --function-id 9123 --active true
$ azion update function --function-id 9123 --active false
$ azion update function --in "update.json"
      

Options

      --active string                  Whether the function should be active or not
      --args string                    Path and name of the JSON file containing the function's arguments
      --code string                    Path and name to the file containing the function's code
      --execution-environment string   Either 'edge_application' or 'edge_firewall'
      --file string                    Given path and JSON file to automatically update the function attributes; you can use - for reading from stdin
      --function-id int                Unique identifier of the function
  -h, --help                           Displays more information about the update function command
      --name string                    The function's name

Options inherited from parent commands

  -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

SEE ALSO

  • azion update - Modifies or changes single or multiple configurations of existing services or resources on Azion
Auto generated by spf13/cobra on 5-Jan-2026

Clone this wiki locally