﻿---
title: config current-context cli namespace
description: View or change the current context 
url: https://www.elastic.co/elastic/docs-builder/docs/4118/reference/elastic-cli/cli/config/current-context
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

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

View or change the current context

## Commands

<page-card>
  Print the current context name
</page-card>

<page-card>
  Change the current context
</page-card>