Babel command line interface for transpiling JavaScript files using Babel 6. Latest stable version is 6.26.0 (no longer actively developed). This package is part of the legacy Babel 6 ecosystem and has been superseded by @babel/cli in Babel 7+. Key differentiators: provides CLI tools like babel, babel-node, and babel-external-helpers. No further releases expected; users should migrate to @babel/cli for Babel 7+.
npm install babel-cliVerified import paths — ran on the pinned version, not inferred.
Shows typical usage: install, configure preset, transpile files, use watch mode, and run scripts with babel-node.
Migrate to @babel/cli and @babel/core (Babel 7+): npm install --save-dev @babel/cli @babel/core @babel/preset-env
Use @babel/preset-env instead of babel-preset-env, @babel/plugin-* instead of babel-plugin-*. Check Babel 7 migration guide.
Install both: npm install --save-dev babel-cli babel-core
Pre-compile code for production, or use ts-node-like alternatives.
Use babel-preset-env and configure targets.
Run: npm install --save-dev babel-cli babel-core
Add babel-plugin-transform-runtime or include babel-polyfill: npm install --save-dev babel-plugin-transform-runtime and add plugin to .babelrc
Uninstall babel-cli and install @babel/cli @babel/core: npm uninstall babel-cli && npm install --save-dev @babel/cli @babel/core
Use npx babel or add node_modules/.bin to PATH, or install globally: npm install -g babel-cli