Manage Azion configuration resources from manifest files. The config command provides subcommands for initializing, applying, and deleting configurations.


Usage

Terminal window
azion config [flags]
azion config [subcommand] [flags]

Available subcommands

SubcommandDescription
initInitialize Azion configuration file
applyApply configuration from configuration file to Azion Platform
deleteDelete all resources from azion.json

config init

Create an azion.json file in the current directory to store your application state.

Usage

Terminal window
azion config init [flags]

Examples

Terminal window
azion config init
azion config init --config-dir ./my-project

Optional flags

config-dir

The --config-dir option specifies the path to the directory where azion.json will be created. Default is the current directory.

Terminal window
azion config init --config-dir ./my-project

force

The --force option overwrites an existing configuration file without prompting for confirmation.

Terminal window
azion config init --force

help

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

Terminal window
azion config apply [flags]

Examples

Terminal window
azion config apply
azion config apply --config-dir ./my-project

Optional 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.

Terminal window
azion config apply --config-dir ./my-project

help

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

Terminal window
azion config delete [flags]

Examples

Terminal window
azion config delete
azion config delete --force
azion config delete --config-dir ./my-project

Optional flags

config-dir

The --config-dir option specifies the relative path to where your azion.json file is stored. Default is the current directory.

Terminal window
azion config delete --config-dir ./my-project

force

The --force option forces deletion without a confirmation prompt.

Terminal window
azion config delete --force

help

The --help option displays more information about the delete subcommand.


Global flags

FlagDescription
-c, --config stringSets the Azion configuration folder for the current command only, without changing persistent settings.
-d, --debugDisplays log at a debug level.
--format stringChanges the output format passing the json value to the flag.
-l, --log-level stringSet the logging level: “debug”, “info”, or “error”. Default is “info”.
--no-colorChanges the output format passing the json value to the flag.
--out stringExports the output to the given <file_path/file_name.ext>.
-s, --silentSilences log completely; mostly used for automation purposes.
--timeout intDefines how much time in seconds the CLI will wait before timing out from the HTTP connection. Default is 50.
-t, --token stringSaves a given Personal Token locally to authorize CLI commands.
-y, --yesAnswers all yes/no interactions automatically with yes.