-
Notifications
You must be signed in to change notification settings - Fork 7
Alterant CLI
Khash Sajadi edited this page Jun 4, 2019
·
1 revision
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
stable/2.0.0
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