<!-- Before making a PR please make sure to read our contributing guidelines https://github.com/babel/babel/blob/master/CONTRIBUTING.md For any issue references: Add a comma-separated list of a [closing word](https://help.github.com/articles/closing-issues-via-commit-messages/) followed by the ticket number fixed by the PR --> | Q | A <!--(yes/no) --> | ------------------------ | --- | Patch: Bug Fix? | | Major: Breaking Change? | | Minor: New Feature? | y | Deprecations? | | Spec Compliancy? | | Tests Added/Pass? | y/y | Fixed Tickets | #5616 | License | MIT | Doc PR | <!-- if yes, add `[skip ci]` to your commit message to skip CI builds --> | Dependency Changes | <!-- Describe your changes below in as much detail as possible --> Once merged I will make the corresponding documentation changes on the website (in a 7 branch)
@babel/cli
Babel command line.
In addition, various entry point scripts live in the top-level package at @babel/cli/bin.
There is a shell-executable utility script, babel-external-helpers.js, and the main Babel cli script, babel.js.
Install
npm install --save-dev @babel/core @babel/cli
Usage
babel script.js
For more in depth documentation see: http://babeljs.io/docs/usage/cli/