﻿---
title: config cli namespace
description: Author and maintain the elastic config file 
url: https://www.elastic.co/elastic/docs-builder/docs/4097/reference/elastic-cli/cli/config
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# config cli namespace
```bash
elastic config --help
```

Author and maintain the elastic config file

## Sub-namespaces

<page-card>
  Manage contexts in the elastic config file
</page-card>

<page-card>
  View or change the current context
</page-card>


## Namespace Flags

<definitions>
  <definition term="--config-file string">
    path to the config file to edit (defaults to ~/.elasticrc.yml)
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>