Azion CLI init, build, and deploy commands
See the commands that enable the initialization, build, and deployment of edge applications on the Azion Edge Platform.
Initialize
Section titled InitializeThe init
command offers an interactive journey. Through this command, it’s possible to:
- Initialize
- Build
- Have a local server running
- Deploy applications
The initialization process creates the necessary environment for building your edge application.
Usage
Section titled UsageOnce you’ve run the init
command, you should either accept the suggested name to your application or enter a different one:
Output:
Then, select a template:
Now, the application will be initialized. Different processes occur based on the selected template, so you need to answer the interactions that are presented.
Choose if you want to run the application locally or not:
It’s necessary to be inside the project’s folder to run the dev
, build
, and deploy
commands.
Optional flags
Section titled Optional flagsThe --name
option can be specified, but it isn’t mandatory. If it isn’t informed, the name of your project will be autogenerated.
The --help
option displays more information about the build
command.
Build
Section titled BuildOptional flags
Section titled Optional flagsThe --help
option displays more information about the build
command.
The --mode
option can be specified in case the mode needs changing during the build process, but it isn’t mandatory. The expected values are deliver
and compute
.
preset
Section titled presetThe --preset
option can be specified in case the preset needs changing during the build process, but it isn’t mandatory. The expected values are:
- Html
- Javascript
- Typescript
- Angular
- Astro
- Hexo
- Next
- React
- Vue
- static
Deploy
Section titled DeployThe deploy
command deploys your application to the Azion Edge Platform.
Usage
Section titled UsageOptional flags
Section titled Optional flagsThe --path
option is used when it’s necessary to inform the filepath to the static application being deployed.
The --help
option displays more information about the deploy
command.
Inherited flags
Section titled Inherited flagsSome global options are inherited by the init, build, and deploy commands. Check them out:
Contributors