Installation
Installation
Install CLI
We recommend installing the CLI globally. Installing the CLI globally makes sure it can be used in all your projects. For that reason all examples in this documentation will assume a global installation.
For more advanced uses, the CLI can be installed in your project as a development dependency.
Check if the installation worked
When installed globally, trying running the following command in your Terminal to verify whether it's installed correctly.
this should give you the following response:
If the command isn't recognized, it might be because the yarn global bin folder isn't in your PATH.
In case your are using bash, you can add export PATH="$PATH:$(yarn global bin)"
to your ~/.bash_profile
and reload it with source ~/.bash_profile
When installed as a development dependency, run the following command to verify the CLI is working correctly:
Completion
Enable auto-complete for shell commands with:
This command updates either your ~/.zshrc
or ~/.bashrc
file, depending on your shell. Reload your shell using:
or
Now, you can use the tab key to complete commands and view command arguments by typing and pressing tab.
Last updated