From the course: Visual Studio App Center for Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Using CLI in a script

Using CLI in a script - Visual Studio Tutorial

From the course: Visual Studio App Center for Developers

Start my 1-month free trial

Using CLI in a script

- [Instructor] One common thing we may want to do is run automated tests as part of a build. We can do this with custom build scripts and the App Center CLI. In order to do it, we need to log in in a non-interactive way. For this, we need an API key. To create an API key, we go to our user icon on the bottom and click on Account Settings and API Tokens, and we're going to create a new API token, and we can give it whatever name we want. So we're going to call it Build_Script. And we're going to give it full access. Full access allows us to be able to go in and change things about our applications within Visual Studio App Center, include kicking off custom builds. So now I'm going to press Add new API token. And here it's going to give us an API token that I'm going to put in our clipboard. We need to make sure we don't lose this because once we close the window, the API token will be gone forever. So I'm going to close this. Now we're going to go back to our iOS application. So click…

Contents