I'm pretty sure mas-cli [https://github.com/mas-cli/mas] is abandonware. It hasn't received any meaningful updates in almost 2 years and most of its features are broken
It reminds of seemingly abandoned "mas"[1] tool that allows using command line to install and update applications without launching AppStore.
This can be done using the mas-cli. It's not official, but works decently well.
Not from Apple, but there's mas: https://github.com/mas-cli/mas
Note, however, that if[1], and apparently only if[2], you’ve downloaded Sierra from the App Store in the past, you can install
https://github.com/mas-cli/mas
and then use the command
mas install 1127487414
to download the latest Sierra installer from the App Store.[1] It worked for me.
[2] Or so I’ve heard.
Have a look at mas (https://github.com/mas-cli/mas) for automated Mac App Store manipulation from the command line.