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, 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 aziontech/tap/azion
Updating Azion CLI
Section titled Updating Azion CLIEvery time a new version is released and any Azion command is used, a prompt informs the user about the new version and asks them if they wish to update it or not.
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