Azion CLI
Azion CLI is an open source command-line interface (CLI) that lets you interact with Azion Edge Platform using a terminal. You can use Azion CLI to:
- Initialize, build, and deploy edge applications.
- Create Jamstack applications.
- Manage the edge applications on the platform.
- Have a local development server running.
- Link an existing project to an Azion edge application.
Azion disposes of a set of options to interact with the Azion products, such as:
The Azion CLI is built in Go and interacts with Azion products through the Azion Go SDK.
Installing Azion CLI
Section titled Installing Azion CLIDownloading
Section titled DownloadingIf you choose the RPM, Dpkg, or apk package manager, or the .deb file, go to the releases page and download the desired package.
Choose one of the following options:
sudo rpm -i <downloaded_file>
sudo dpkg -i <downloaded_file>
apk add <downloaded_file>
brew install azion
sudo apt install ./<download_file_path>
Web frameworks
Section titled Web frameworksThe CLI works together with an open-source framework adapter called Vulcan. Vulcan adapts a variety of web frameworks to run on the edge of the network.
Azion employs the terminology compute
and deliver
to describe the operational modes of applications within its framework:
Mode | Description |
---|---|
Compute | Designed for applications that require computational processing at the Edge, whether it’s for Front-End Server-Side Rendering (SSR) or Back-End tasks. In Compute Mode, Azion enables the execution of code and processing of dynamic content at the Edge to enhance performance and responsiveness. |
Deliver | Tailored for frameworks that primarily focus on handling and routing incoming requests at the Edge, with an emphasis on efficiently serving static files. While applications in Deliver Mode don’t execute dynamic code, they excel in optimizing the delivery of static content to end-users, thereby ensuring smooth and fast content distribution. |
The supported frameworks that run static (deliver) applications include:
For applications that require processing on the edge (compute) rather than only delivery of content, it’s supported:
- Next.js version 12.3.1, using the node runtime.
go to supported Web APIs
go to node.js support reference
Global options
Section titled Global optionsversion
Section titled versionazion --version
The -v
or --version
option informs which Azion version you’ve currently installed.
debug
Section titled debugazion --debug
The -d
or --debug
option displays logs at a debug level.
config
Section titled configazion --config
The -c
or --config
option sets the Azion configuration folder for the current command only, without changing persistent settings.
log-level
Section titled log-levelazion --log-level info
The -l
or --log-level
option informs the level of log to be output. The options are:
info
(default)error
debug
silent
Section titled silentazion --silent
The -s
or --silent
option silences logs completely. Usually, it’s used for automation purposes.
token
Section titled tokenazion --token your-personal-token
The -t
or --token
option saves a given personal token locally to authorize CLI commands.
azion --yes
The -y
or --yes
option answers all yes/no interactions automatically with yes.
The h
or --help
option displays more information about the azion
command.
previous versions of Azion CLI 1.0.0
Contributors