{"id":28029,"library":"parcel-config-cli","title":"parcel-config-cli","description":"CLI tool for generating and managing Parcel bundler configurations version 1.0.0. Parcel-config-cli provides a command-line interface to initialize, validate, view, modify, and compare Parcel configuration files. It includes template-based scaffolding (minimal, standard, advanced), built-in validation to catch errors before deployment, environment-aware management for dev/staging/production, and diff support. Unlike manual config editing, it offers zero runtime dependencies (only commander and chalk), making it lightweight and easy to integrate into CI/CD pipelines. The project is currently stable and actively maintained on GitHub.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/okirmio-create/cli-forge","tags":["javascript","parcel","config","cli","bundler","zero-config","build-tool","typescript"],"install":[{"cmd":"npm install parcel-config-cli","lang":"bash","label":"npm"},{"cmd":"yarn add parcel-config-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add parcel-config-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"used for CLI argument parsing","package":"commander","optional":false},{"reason":"used for colorful terminal output","package":"chalk","optional":false}],"imports":[{"note":"The CLI is meant to be run from the terminal, not imported as a module. Use npx for one-off usage without global install.","wrong":"parcel-config init","symbol":"parcel-config","correct":"npx parcel-config init"},{"note":"While parcel-config-cli is primarily a CLI tool, it also exports functions for programmatic use. ESM import is preferred.","wrong":"const init = require('parcel-config-cli')","symbol":"init","correct":"import { init } from 'parcel-config-cli'"},{"note":"validate is a named export, not default.","wrong":"","symbol":"validate","correct":"import { validate } from 'parcel-config-cli'"}],"quickstart":{"code":"// Install globally or use npx\n// Initialize a standard Parcel configuration\nparcel-config init --template standard\n\n// Validate the generated config\nparcel-config validate\n\n// Set a property\nparcel-config set settings.debug true\n\n// View config as JSON for production\nparcel-config show --env production --json\n\n// Or programmatically:\nimport { init, validate } from 'parcel-config-cli';\nimport { writeFileSync } from 'fs';\n\nconst config = await init({ template: 'minimal', output: undefined });\nconst isValid = await validate({ config });\nwriteFileSync('.parcelrc', JSON.stringify(config, null, 2));\nconsole.log('Config valid:', isValid);","lang":"typescript","description":"Demonstrates CLI usage for initialization, validation, property setting, and viewing config; plus programmatic use with TypeScript imports."},"warnings":[{"fix":"Ensure the config file is named .parcelrc or explicitly pass the path to commands: parcel-config validate path/to/config.json","message":"The generated config files use the .parcelrc naming convention; if you rename them, the CLI commands may not detect them automatically.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Run parcel-config init --template minimal to revert to the old default if needed.","message":"Version 1.0.0 changed the default template from 'minimal' to 'standard'. Existing projects upgrading may need to adjust their config.","severity":"breaking","affected_versions":"1.0"},{"fix":"Replace --format json with --json in your scripts.","message":"The --format flag in the show command is deprecated; use --json instead.","severity":"deprecated","affected_versions":">=1.0"},{"fix":"Wrap values in quotes when using the CLI: parcel-config set settings.debug 'true'","message":"The set command only supports string values; boolean and number values must be provided as strings (e.g., 'true' or '123').","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install globally: npm install -g parcel-config-cli, or use npx: npx parcel-config-cli init","cause":"The package is not installed or not found in node_modules.","error":"Error: Cannot find module 'parcel-config-cli'"},{"fix":"Install globally: npm install -g parcel-config-cli, or run via npx: npx parcel-config init","cause":"Global installation is missing or PATH is not set correctly.","error":"parcel-config: command not found"},{"fix":"Use --json instead: parcel-config show --json","cause":"The --format flag has been replaced by --json.","error":"Unrecognized option: --format"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}