---
title: "nctl edit config"
diataxis: reference
applies_to:
  product: "nctl"
audience: ["developer","platform-engineer"]
last_updated: 2026-03-07
url: https://docs.nirmata.io/docs/nctl/commands/nctl_edit_config/
---

## nctl edit config

Edit nctl configuration file

### Synopsis

Edit nctl configuration file by opening editor or entering values of repository to add

```bash
nctl edit config [flags]
```

### Examples

```bash

  # Add a repository with a name, type, and authentication details  
  nctl edit config --name my-repo --type helm --username example-user --gitToken example-token --file=false  

  # Add a repository with a specific chart repository URL and branch  
  nctl edit config --name nirmata/kyverno-charts --chartRepo https://nirmata.github.io/kyverno-charts --branch main --file=false  

  # Add a Helm chart with a name, version, and authentication token  
  nctl edit config --chartName my-chart --version 1.2.3 --gitToken example-token --file=false  

  # Add a repository with a branch and authentication token  
  nctl edit config --name my-repo --branch dev --gitToken example-token --file=false  

  # Add multiple repository details including username, type, and branch  
  nctl edit config --name my-repo --type helm --username example-user --branch main --gitToken example-token --file=false  

  # Add a repository from a specific branch, chart repository, and authentication  
  nctl edit config --name my-repo --branch dev --chartRepo https://charts.example.com --username example-user --gitToken example-token --file=false  

```

### Options

```text
      --branch string      Branch of the repository to add
      --chartName string   Name of the chart to add
      --chartRepo string   URL of the chart repository to add
      --file               enable to open config file in editor to edit config file (default true)
      --gitToken string    Git token for authentication to add
  -h, --help               help for config
      --name string        Name of the repository to add
      --type string        Type of the repository to add
      --username string    Username for authentication to add
      --version string     Version of the chart to add
```text

### Options inherited from parent commands

```text
  -v, --v Level   number for the log level verbosity
```

### SEE ALSO

* [nctl edit](nctl_edit.md)	 - Edit nctl resources


