npm install now-completions -g now-completions install
Then choose the SHELL for which you want to enable the completions for.
Fow now, only a subset of commands have "intelligent" completion:
- now (the top level command)
- ls | list
- log | logs
Some commands (such as ls, inspect and logs) make use of now API to get back namely the list of deployments.
Make sure that
now who you are by running
now login once before completing
with these commands.
Pretty much all now.sh commands, with a bit more work. If you feel like a command is missing or would like to enhance an existing one, PRs are welcome and appreciated!