# Azion CLI dev

import DocButton from '~/components/webkit/DocButton.vue';

:::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.
:::

## dev

The `dev` command adapts the environment for building your application and run it locally. It's used for projects already initialized or linked to an **Azion Application**.

:::tip
If you want to run this command for a project that hasn't been initialized as an Azion Application, you can run the `link` command to link the project to Azion.
:::

<DocButton href="/en/documentation/products/cli/link-command/" label="Link an Existing Project to Azion" kind="secondary" size="medium" /> 

:::note 
It's necessary to run the command in the project's root folder.
:::

### Usage

```sh
azion dev
```

### output 

Once you've initialized the local development server, the application goes through the `build` process.

```sh 
Building your Applications. This process may take a few minutes
Running build step command:
...
```

Then, when the build is complete, the access to the application is prompted: 

```sh
[Azion Bundler] [Server] › ✔  success   Function running on port http://localhost:3000 
```

### Optional flags

#### help

The `--help` option displays more information about the `dev` command.

#### firewall

The `--firewall` option indicates the function is intended for Firewall.

<DocButton href="/en/documentation/products/guides/edge-functions/first-steps/" label="Functions for Applications" kind="secondary" size="medium" /> 

<br />

<DocButton href="/en/documentation/products/secure/firewall/functions/" label="Functions for Firewall" kind="secondary" size="medium" />