> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nativecli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuration

> Configure NativeCLI behavior for global and project-specific settings

<Note>
  Configuration is available from version 1.0.3.
</Note>

NativeCLI provides a way to configure certain behaviors within the application.

You are able to configure both a global configuration and a local, project-specific configuration.

<Tip>
  If you only provide the key, the value will be output. If you provide both the key and value, the value will be set.
</Tip>

## Global Configuration

Syntax:

```bash theme={null}
nativecli config --global [KEY] [VALUE]
```

## Local Configuration

Syntax:

```bash theme={null}
nativecli config [KEY] [VALUE]
```

<Tip>
  Note the only difference is the `--global` flag.
</Tip>

## Options

### -g, --global

Sets a global configuration option. This will affect all projects where a local configuration has not overridden it.

## Available Configuration Options

### updates.check

This option controls whether NativeCLI will check for updates when it is run. The default is `true`.

### updates.auto

This option controls whether NativeCLI will automatically update itself when a new version is available. The default is `false`.

## Examples

Set the global configuration option `updates.check` to `false`:

```bash theme={null}
nativecli config --global updates.check false
```

Get the current value of `updates.check`:

```bash theme={null}
nativecli config updates.check
```
