Azion CLI Warmup allows you to preload URLs into the edge cache by systematically crawling a URL, improving performance for your applications.


Warmup

Performs cache warming by systematically crawling a URL and preloading its content into the edge cache.

Usage

Terminal window
azion warmup --url "https://example.com"
Terminal window
azion warmup --url "https://example.com/products"
Terminal window
azion warmup --url "https://example.com/blog" --max-urls 500 --max-concurrent 5 --timeout 10000

Required Flags

url

The --url flag specifies the base URL to start warming the cache. This is the entry point from which the command will crawl and preload content.

Optional Flags

help

The --help flag displays more information about the warmup command.

max-concurrent

The --max-concurrent flag sets the maximum number of concurrent requests during the warming process. The default value is 2.

max-urls

The --max-urls flag defines the maximum number of URLs to process during cache warming. The default value is 1500.

timeout

The --timeout flag specifies the timeout in milliseconds for each request. The default value is 8000.

Global Flags

The following global flags can be used with the warmup command:

FlagDescription
-c, --configSets the Azion configuration folder for the current command only, without changing persistent settings.
-d, --debugDisplays log at a debug level.
--formatChanges the output format passing the json value to the flag.
-l, --log-levelSet the logging level: “debug”, “info”, or “error”. Default is “info”.
--no-colorChanges the output format passing the json value to the flag.
--outExports the output to the given <file_path/file_name.ext>.
-s, --silentSilences log completely; mostly used for automation purposes.
-t, --tokenSaves a given Personal Token locally to authorize CLI commands.
-y, --yesAnswers all yes/no interactions automatically with yes.