title | description | meta_tags | namespace | menu_namespace | permalink |
---|---|---|---|---|---|
Azion CLI init, build, and deploy commands |
Create and deploy a new application from Azion's templates. |
cli, next, javascript, astro, vue, react, edge computing |
documentation_cli_edge_applications_journey |
cliMenuAlpha |
/documentation/products/azion-cli/create-application/ |
:::note In case one or more required fields aren't informed through the specific flags, an interactive message prompts and asks for the missing information. :::
See the commands that enable the initialization, build, and deployment of edge applications on the Azion Edge Platform.
The init
command offers an interactive journey. Through this command, it's possible to:
- Initialize
- Build
- Have a local server running
- Deploy applications
:::note
When you run azion
, it works as an alias to the init
command. Then, the same journey is expected.
:::
The initialization process creates the necessary environment for building your edge application.
azion init
Once you've run the init
command, you should either accept the suggested name to your application or enter a different one:
(Hit enter to accept the suggested name in parenthesis) Your applications name: (resilient_zeus)
Output:
Getting templates available
Then, select a template:
Choose a template for your project: (Use arrow keys)
❯ Angular
Astro
Hexo
Next
React
Vue
Vite
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:
? Do you want to start a local development server? (y/N)
:::note If you want to start a local development server later, run 'azion dev' :::
? Do you want to deploy your project? No
:::note If you want to deploy your application later, run 'azion deploy' :::
It's necessary to be inside the project's folder to run the dev
, build
, and deploy
commands.
The --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.
:::note The init command disposes of an interactive journey. It'll ask if you want to initialize a local development server and deploy the project. :::
azion build
The --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
.
The --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
The deploy
command deploys your application to the Azion Edge Platform.
azion deploy
The --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.
Some global options are inherited by the init, build, and deploy commands. Check them out:
-c, --config string Sets the Azion configuration folder for the current command only, without changing persistent settings.
-d, --debug Displays log at a debug level
-l, --log-level string Displays log at a debug level (default "info")
-s, --silent Silences log completely; mostly used for automation purposes
-t, --token string Saves a given personal token locally to authorize CLI commands
-y, --yes Answers all yes/no interactions automatically with yes
import ContributorList from '~/components/ContributorList.astro'
Contributors Contributor