Home Explore Blog CI



nushell

1st chunk of `commands/docs/config_reset.md`
61f1b038e684cc7cc64e9daf211c123ff8a37949d4e6ddcc0000000100000449
---
title: config reset
categories: |
  env
version: 0.104.0
env: |
  Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu.
usage: |
  Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `config reset` for [env](/commands/categories/env.md)

<div class='command-title'>Reset nushell environment configurations to default, and saves old config files in the config location as oldconfig.nu and oldenv.nu.</div>

## Signature

```> config reset {flags} ```

## Flags

 -  `--nu, -n`: reset only nu config, config.nu
 -  `--env, -e`: reset only env config, env.nu
 -  `--without-backup, -w`: do not make a backup


## Input/output types:

| input   | output  |
| ------- | ------- |
| nothing | nothing |
## Examples

reset nushell configuration files
```nu
> config reset

```

Title: config reset
Summary
The `config reset` command resets NuShell's environment configurations to their defaults. It can reset both the main configuration (`config.nu`) and the environment configuration (`env.nu`), or both. It also saves the previous configurations as `oldconfig.nu` and `oldenv.nu` in the config directory for backup, unless the `--without-backup` flag is used.