You use Sitefinity CLI to upgrade your project running on Sitefinity CMS version 10.0 or higher. We recommend that you always upgrade to the latest version. For information about the supported Sitefinity CMS versions, see Sitefinity Life Cycle Policy Guide.
This upgrade approach has the following main advantages:
Install Sitefinity CLI from Sitefinity GitHub repository » Sitefinity CLI.
IMPORTANT: When you run Sitefinity CLI, we recommend that you keep the project under source control, because there is no rollback mechanism in case something goes wrong. You must not close the Visual Studio that is opened by Sitefinity CLI, because this will cancel the upgrade.
Run Sitefinity CLI and enter an upgrade command with the following syntax:
sf upgrade "{{path to the solution you want to upgrade}}" "{{version you are upgrading to}}"
EXAMPLE: Run Sitefinity CLI and enter the following command: sf upgrade "D:\TestProject\SitefinityWebApp.sln" "13.2.7500"
The upgrade command has the following optional parameters:
--packageSources
http://nuget.sitefinity.com
https://nuget.org/api/v2/.
EXAMPLE: Run Sitefinity CLI and enter the following command: sf upgrade "D:\TestProject\SitefinityWebApp.sln" "13.2.7500" --packageSources "https://customfeed/nuget, https://nuget.org/api/v2/"
--acceptLicense
EXAMPLE: Run Sitefinity CLI and enter the following command: sf upgrade "D:\TestProject\SitefinityWebApp.sln" "13.2.7500" --acceptLicense
If you use this parameter you automatically accept Sitefinity CMS license agreement and do not have to explicitly accept it. You can find the license after the upgrade in the Licenses folder in the Sitefinity package. For example, ~\packages\Progress.Sitefinity.MobileFormats.13.2.7500\LicenseAgreements.
~\packages\Progress.Sitefinity.MobileFormats.13.2.7500\LicenseAgreements
IMPORTANT: Using this parameter means that you automatically accept the license agreement and any changes included in it. If you do not agree to the new license, you must uninstall the product.
--skipPrompts
When you run the command, the specified version of NuGet packages is downloaded in the folder of the solution. You are prompted to accept the license agreement. A new Visual Studio instance is launched and a NuGet command to install the NuGet packages is started. The upgrade command modifies the references in the .csproj project and binding redirects, if needed. The upgrade command modifies references for Sitefinity projects only.
upgrade
.csproj
Once Sitefinity CLI has completed the upgrade process, make sure to rebuild your project.
NOTE: When you upgrade monolingual projects, make sure to reindex all frontend indices. If the indices are not reindexed, they might return two records for the same item - one with culture and one without.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important