﻿---
title: config context cli namespace
description: Manage contexts in the elastic config file 
url: https://www.elastic.co/elastic/docs-builder/docs/4118/reference/elastic-cli/cli/config/context
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

Manage contexts in the elastic config file

## Commands

<page-card>
  List all contexts defined in the config file
</page-card>

<page-card>
  Add a new context to the config file
</page-card>

<page-card>
  Edit an existing context (flag-patch or $EDITOR mode)
</page-card>

<page-card>
  Remove a context from the config file
</page-card>