Installing the Phygrid CLI
You will need following prerequisites in your dev environment for Phygrid CLI to work:
- NodeJS 16+ (current LTS version is recommended)
- Git CLI
Install CLI
To install the CLI, you have to download the @phygrid/cli package from NPM. This package should be installed globally.
npm i -g @phygrid/cliAuthentication
Authentication with the CLI works using Device Grant Flow.
Then to authenticate the CLI run the following command:
phy loginA special command can be used when you need to use the phy CLI on environment without a browser:
phy login --use-device-codeConfirm successful authentication
Verify the setup by running a command that lists your tenants:
phy org listIf you see your tenant's name and you don't see any errors, you are good to go!