You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,27 @@ Bootstraps the CLI configuration in your project's folder. This command creates
71
71
-`--organization` (string): Organization name, required with `--api-token`
72
72
-`--repository` (string): Repository name, required with `--api-token`
73
73
74
+
### `config reset` — Reset Configuration
75
+
76
+
Resets the Codacy configuration files and tool-specific configurations. This command overwrites existing configuration with either local default configurations or repository-specific configurations from Codacy.
77
+
78
+
```bash
79
+
# Reset to local default configurations
80
+
codacy-cli config reset
81
+
82
+
# Reset to repository-specific configurations from Codacy
-**Local mode**: Creates default configurations for all available tools
88
+
-**Remote mode**: Fetches and applies repository-specific configurations from Codacy
89
+
- Prevents accidental mode switching (remote to local requires explicit flags)
90
+
- Overwrites existing `.codacy/codacy.yaml` and tool configurations
91
+
- Creates or updates `.codacy/.gitignore` file
92
+
93
+
**Flags:** Same as `init` command (api-token, provider, organization, repository)
94
+
74
95
### `config discover` — Discover Project Languages
75
96
76
97
Scans a project directory to detect programming languages and automatically configures appropriate static analysis tools. This command updates both `languages-config.yaml` and `codacy.yaml` with relevant tools for detected languages.
0 commit comments