Sp-dev-docs: Automate SPFx version upgrade

Created on 30 Nov 2018  路  6Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Is there a way to automate SPFx version uppgrade on a sharepoint project? Thank you!

spfx-general question

All 6 comments

The pnp Office365 CLI does this.

https://github.com/pnp/office365-cli

Mentioning @waldekmastykarz in case I am wrong in this regard.

Isn't Office 365 CLI to automatically detect necessary changes for upgrading SPFx version? It generates a report with steps of commands to run for upgrade. Please let me know if I am wrong. I am curious to know if there is a command which on running would automatically upgrade sharepoint project to a newer version.

You are correct: Office 365 CLI generates a report with the list of steps that need to be applied manually to upgrade the project to a newer version. You could of course automate this process yourself, by executing the suggested commands and applying the recommended changes, but it's not trivial and you should ensure you have a backup of your project in case you need to revert the changes.

Thank you @waldekmastykarz

You're welcome!

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nanddeepn picture nanddeepn  路  3Comments

jonthenerd picture jonthenerd  路  3Comments

mikeparkie picture mikeparkie  路  3Comments

bengtmoss picture bengtmoss  路  3Comments

ken-harris picture ken-harris  路  3Comments