Manage Azion configuration resources from manifest files. The config command provides subcommands for initializing, applying, and deleting configurations.
Usage
azion config [flags]azion config [subcommand] [flags]Available subcommands
| Subcommand | Description |
|---|---|
init | Initialize Azion configuration file |
apply | Apply configuration from configuration file to Azion Platform |
delete | Delete all resources from azion.json |
config init
Create an azion.json file in the current directory to store your application state.
Usage
azion config init [flags]Examples
azion config initazion config init --config-dir ./my-projectOptional flags
config-dir
The --config-dir option specifies the path to the directory where azion.json will be created. Default is the current directory.
azion config init --config-dir ./my-projectforce
The --force option overwrites an existing configuration file without prompting for confirmation.
azion config init --forcehelp
The --help option displays more information about the init subcommand.
config apply
Apply configuration resources defined in the azion.config file to Azion Platform.
Usage
azion config apply [flags]Examples
azion config applyazion config apply --config-dir ./my-projectOptional flags
config-dir
The --config-dir option specifies the path to the configuration directory containing azion.json and azion.config. Default is the current directory.
azion config apply --config-dir ./my-projecthelp
The --help option displays more information about the apply subcommand.
config delete
Delete all resources found in the azion.json configuration file and reset it to a fresh state.
Usage
azion config delete [flags]Examples
azion config deleteazion config delete --forceazion config delete --config-dir ./my-projectOptional flags
config-dir
The --config-dir option specifies the relative path to where your azion.json file is stored. Default is the current directory.
azion config delete --config-dir ./my-projectforce
The --force option forces deletion without a confirmation prompt.
azion config delete --forcehelp
The --help option displays more information about the delete subcommand.
Global flags
| Flag | Description |
|---|---|
-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 is “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 is 50. |
-t, --token string | Saves a given Personal Token locally to authorize CLI commands. |
-y, --yes | Answers all yes/no interactions automatically with yes. |