Trying to add appcenter CLI commands for example: appcenter test run espresso --app "Test-apps" --devices "google-pixel-2-android-10" --app-path pathToFile.apk --test-series "master" --locale "en_US" --build-dir pathToEspressoBuildFolder
But where should add this CLI command & how to add it stepwise. Can anyone explain clearly?
Your question is still not very clear, it would be great if you copy and paste the errors you are getting, share a screenshot or give more details. Tell us what OS you are using, where did you get this command from?
You need to open the terminal or shell, and paste the commands in there.
There are a few pre-requisites though, the documentation is not super beginner friendly.
From the docs:
npm install -g appcenter-cli