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
azion warmup --url "https://example.com"azion warmup --url "https://example.com/products"azion warmup --url "https://example.com/blog" --max-urls 500 --max-concurrent 5 --timeout 10000Required 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:
| Flag | Description |
|---|---|
-c, --config | Sets the Azion configuration folder for the current command only, without changing persistent settings. |
-d, --debug | Displays log at a debug level. |
--format | Changes the output format passing the json value to the flag. |
-l, --log-level | 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 | Exports the output to the given <file_path/file_name.ext>. |
-s, --silent | Silences log completely; mostly used for automation purposes. |
-t, --token | Saves a given Personal Token locally to authorize CLI commands. |
-y, --yes | Answers all yes/no interactions automatically with yes. |