From the course: SharePoint Framework for Developers: 3 Deployment, Upgrades, and Lifecycle

Unlock the full course today

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

Use Office 365 CLI to install, uninstall, and upgrade apps

Use Office 365 CLI to install, uninstall, and upgrade apps

From the course: SharePoint Framework for Developers: 3 Deployment, Upgrades, and Lifecycle

Start my 1-month free trial

Use Office 365 CLI to install, uninstall, and upgrade apps

- [Instructor] You can also use the ALM APIs, and therefore Office 365 CLI targeting the ALM APIs, to automate the process of installing this app, uninstalling the app, or upgrading the app. Let's see how. Let's come back in here, and ask that app to be installed. The app has a GUID ID, which I gained from here. In order to install the app, I simply say, old 365 SPO app install, and then I give it the ID of the app, and simply provide the site URL where I want this app to be installed. Let's come back here. Let's go to Site Contents, refresh, and you see that the app is being added here. You can also choose to upgrade the app by simply replacing this install word with upgrade. I don't have an upgrade available, so I won't actually run this. Let me talk about uninstall. I think you can guess where I'm going with this. You simply say, uninstall, and hit Enter. It'll say, are you sure? I will say, yes. Now, let's come back here, hit refresh, and it says, we're removing your app. This is…

Contents