# Azion CLI global options

Azion CLI commands that can be run anywhere in the process.

---

## version 

```sh 
azion --version
```

The `-v` or `--version` option informs which Azion version you've currently installed.

## debug 

```sh 
azion --debug
```

The `-d` or `--debug` option displays logs at a debug level.

## config 

The `-c` or `--config` option sets the Azion configuration folder for the current command only, without changing persistent settings.

Standard config file, created by Azion: 

```bash title="~/.azion/settings.toml"
Token = 'token'
UUID = ''
LastCheck = 2024-02-23T11:44:14-03:00
LastVulcanVersion = "x.y.z\n"
AuthorizeMetricsCollection = 1 // 0 - not answered, 1 - Yes, 2 - No
ClientId = 'xxx'
Email = 'xxxxx@gmail.com'
```

New config file created by the user: 

```bash title="./new-config-file.toml"
Token = 'token'
UUID = '' //uuid of the token
LastCheck = 2024-02-23T11:44:14-03:00 
LastVulcanVersion = "x.y.z\n"
AuthorizeMetricsCollection = 1 // 0 - not answered, 1 - Yes, 2 - No
ClientId = 'xxx'
Email = 'xxxx@gmail.com'
```

Usage:

```sh 
azion --config ./new-config-file.toml
```

## log-level 

```sh 
azion --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 

```sh 
azion --silent
```

The `-s` or `--silent` option silences logs completely. Usually, it's used for automation purposes.

## timeout

```sh
azion --timeout
```

The `--timeout` option defines the timeout for CLI requests in seconds. The default value is `50`.

## token 

```sh 
azion --token your-personal-token
```

The `-t` or `--token` option saves a given personal token locally to authorize CLI commands.

## yes 

```sh 
azion --yes
```

The `-y` or `--yes` option answers all yes/no interactions automatically with yes.

## help

The `h` or `--help` option displays more information about the `azion` command.


## format

```sh
azion --format json
```

The `--format` option changes the output format by passing the `json` value to the flag.

## out

```sh
azion --out /path/to/file.json
```

The `--out` option exports the output to the given file path.

## no-color

The `--no-color` option indicates the output to not use colors.