Alterant CLI

Using Alterant CLI

Using Alterant CLI is easy. You can pass in the input file as a JSON or YAML file or pipe it into Alterant. Output can be produced in JSON or YAML or displayed on the screen.



Shows the alterant version

$ alterant version

The first part is the channel. The second part is the version. Alterant is released on stable and edge channels.


Runs a modifier over the input.

alterant modify --in input.yml --out output.yml --modifier foo.js

To display the output on terminal, omit the out flag.

To accept input from the pipe (stdin), use - for the in flag:

cat somefile | alterant modify --in - --modifier foo.js