azion-cli

module
v0.0.0-...-059d9f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT

README

Azion CLI

MIT License CLI Reference Go Report Card

Efficient creation and management of applications on Azion Edge Platform.

Azion CLI is a user-friendly way to work with the Azion Edge Platform, allowing you to create and manage applications through simple commands.

It makes possible the initialization, build, and deployment of applications, from simple static pages to different frameworks, such as:

  • Next.js
  • Vue
  • Angular
  • Astro
  • Hexo
  • React
  • Vite

Through it, you can manage all Azion products, create automation using CI/CD scripts or pipelines, provision multiple services that make up your application with a few commands, and also manage your Azion configurations as code.

The developer-friendly way to interact with Azion!

Downloading

Attention: if you've downloaded azioncli in an older version than 1.0.0, it's highly recommended to uninstall it before downloading azion CLI.

There are two ways to download and use the azion CLI:

  • Cloning this repository and building the project manually.
  • Package managers, since azion is also available as homebrew, WinGet, Chocolatey, rpm, deb and apk packages.

To use rpm, deb and apk packages, please visit our releases page, and download the desired package.

To download and install azion CLI, run:

curl -fsSL https://raw.githubusercontent.com/aziontech/azion/refs/heads/main/scripts/install.sh | bash

If your are a Windows user, download azion CLI through WinGet:

winget install aziontech.azion

or Chocolatey:

choco install azion

Using Azion CLI with docker

You can find the URL for each package in our Releases page https://github.com/aziontech/azion/releases.

docker run -it --rm alpine:latest sh -c '
    cd && \
    wget https://github.com/aziontech/azion/releases/download/<version>/azion_<version>_linux_amd64.apk && \
    apk add --allow-untrusted azion_4.18.0_linux_amd64.apk && \
    azion version; \
    exec sh'

Building Locally

# Build project, by default it will connect to Production APIs
$ make build

# Cross-Build for multiple platforms and architectures
$ make cross-build

How to Use

Authentication

In order to perform network operations it is mandatory to provide an authentication token.

You can provide the token in two ways:

  • Using azion -t [tokenvalue] command, which saves the token in a configuration file for further use:
$ azion -t <authentication token>
  • Using the login command:
$ azion login
Commands

Check all reference documentation for the available commands.

Autocomplete

It's possible to enable the autocompletion to be used with the azion CLI. To learn more about its settings and installation based on your OS, check the autocompletion page.

Golang Update Policy

Our update policy for the Go language aims to ensure that all developers benefit from new features, bug fixes and improvements. To this end, we have adopted the practice of maintaining our project at Release - 1 (Go 1.21 -1). We allow exceptions when vulnerabilities are found.

By following this approach, we prioritize the stability and consistency of the project, while keeping up to date with the latest language updates. As new versions of Go are released, we will evaluate and adopt the new "Release" version, after having sufficient time to test and validate compatibility with our existing code.

This way, our developers can take advantage of the new features, bug fixes and improvements made available by the Go community, while minimizing the possible impacts that sudden updates could have on our project.

We appreciate the understanding and collaboration of all developers who follow our update policy. Together, we guarantee a stable and up-to-date development environment for our Go project.

License

This project is licensed under the terms of the MIT license.

Directories

Path Synopsis
cmd
azion command
gen_docs command
messages
dev
pkg
api/v6/applications
Package applications is the API v6 client for Applications.
Package applications is the API v6 client for Applications.
api/v6/connectors
Package connectors is the API v6 client for Connectors.
Package connectors is the API v6 client for Connectors.
api/v6/custompages
Package custompages is the API v6 client for Custom Pages.
Package custompages is the API v6 client for Custom Pages.
api/v6/deployments
Package deployments is the API v6 client for Deployments and their releases.
Package deployments is the API v6 client for Deployments and their releases.
api/v6/environments
Package environments is the API v6 client for Environments.
Package environments is the API v6 client for Environments.
api/v6/firewalls
Package firewalls is the API v6 client for Firewalls.
Package firewalls is the API v6 client for Firewalls.
api/v6/functions
Package functions is the API v6 client for Functions.
Package functions is the API v6 client for Functions.
api/v6/networklists
Package networklists is the API v6 client for Network Lists.
Package networklists is the API v6 client for Network Lists.
api/v6/storage
Package storage is the API v6 client for the buckets and S3 credentials the v6 deploy needs.
Package storage is the API v6 client for the buckets and S3 credentials the v6 deploy needs.
api/v6/v6test
Package v6test is a fake API v6 for tests.
Package v6test is a fake API v6 for tests.
api/v6/version
Package version holds what every versioned resource of API v6 shares: the build states, how a wait reads them, the error a failed build turns into and the four operations each versioned client exposes.
Package version holds what every versioned resource of API v6 shares: the build states, how a wait reads them, the error a failed build turns into and the four operations each versioned client exposes.
api/v6/wafs
Package wafs is the API v6 client for WAFs.
Package wafs is the API v6 client for WAFs.
api/v6/workloads
Package workloads is the API v6 client for Workloads.
Package workloads is the API v6 client for Workloads.
apiversion
Package apiversion names the generations of the Azion API that the CLI can serve, and resolves which one an account is entitled to.
Package apiversion names the generations of the Azion API that the CLI can serve, and resolves which one an account is entitled to.
cmd/deploy/v6
Package deploy is `azion deploy` for API v6 accounts.
Package deploy is `azion deploy` for API v6 accounts.
cmd/deploy_remote/v6
Package v6 is the deploy for API v6 accounts, as planned in doc/V6-DEPLOY-PLAN.md.
Package v6 is the deploy for API v6 accounts, as planned in doc/V6-DEPLOY-PLAN.md.
cmdregistry
A table lives next to the dispatcher it feeds (pkg/cmd/create/table.go, and so on) so that adding a resource stays a one-line edit in the package that owns the verb.
A table lives next to the dispatcher it feeds (pkg/cmd/create/table.go, and so on) so that adding a resource stays a one-line edit in the package that owns the verb.
httpmock
Taken from GitHub CLI httpmock package MIT License - Copyright (c) 2019 GitHub Inc.
Taken from GitHub CLI httpmock package MIT License - Copyright (c) 2019 GitHub Inc.
manifest/v6
Package v6 applies a v6 manifest.
Package v6 applies a v6 manifest.
pipeline
Package pipeline runs a deploy as a declared list of steps instead of a hand-written sequence.
Package pipeline runs a deploy as a declared list of steps instead of a hand-written sequence.
poll
Package poll waits for a remote state by asking for it at a fixed interval.
Package poll waits for a remote state by asking for it at a fixed interval.
registry
Package registry constructs the API clients that commands use.
Package registry constructs the API clients that commands use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL