CLI Reference
The uglier CLI helps you install, initialize, and manage your ESLint configuration.
Commands
Section titled “Commands”install
Section titled “install”npx @gesslar/uglier installInstalls @gesslar/uglier and all required peer dependencies. Detects your package manager automatically (npm, pnpm, yarn, bun).
init <targets...>
Section titled “init <targets...>”npx @gesslar/uglier init nodenpx @gesslar/uglier init react cjs-overrideGenerates an eslint.config.js file with the specified config blocks. Each target maps to a config block name.
If eslint.config.js already exists, the command will warn you.
add <targets...>
Section titled “add <targets...>”npx @gesslar/uglier add cjs-override mjs-overrideAdds config blocks to an existing eslint.config.js. Parses the current file and appends the new blocks to the with array.
remove <targets...>
Section titled “remove <targets...>”npx @gesslar/uglier remove lints-jsdocRemoves config blocks from an existing eslint.config.js.
--help
Section titled “--help”npx @gesslar/uglier --helpDisplays usage information and lists all available config blocks with descriptions.
Package manager detection
Section titled “Package manager detection”The CLI automatically detects which package manager your project uses by checking for lock files:
| Lock file | Package manager |
|---|---|
pnpm-lock.yaml | pnpm |
yarn.lock | yarn |
bun.lockb | bun |
package-lock.json | npm |