VirtoCommerce.GlobalTool 3.803.0-alpha.212

Prefix Reserved
This is a prerelease version of VirtoCommerce.GlobalTool.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global VirtoCommerce.GlobalTool --version 3.803.0-alpha.212                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local VirtoCommerce.GlobalTool --version 3.803.0-alpha.212                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=VirtoCommerce.GlobalTool&version=3.803.0-alpha.212&prerelease                
nuke :add-package VirtoCommerce.GlobalTool --version 3.803.0-alpha.212                

Introduction

The VirtoCommerce Global Tool (vc-build) is the official CLI .NET Core GlobalTool that helps you build, test and deploy releases, create and push NuGet packages, provide package management for projects based on VirtoCommerce, and automate common DevOps tasks. It is powered by nuke.build - a cross-platform build automation system with C# DSL, that provides an approach to embrace existing IDE tooling and state where everyone in a team can manage and change the build scenarios. This allows writing build scenarios in C# and debugging them in Visual Studio. Also, along with cross-platform support, it was the best choice for us to build our own build automation solution on top of this project.

Check out the project source code for the implementation details.

vc-build CLI

The key features:

Build automation

  • build and bundle a module project (both managed and scripted parts)
  • discover and run all the unit tests from the solution
  • create and publish NuGet packages for projects from your solution, this can be helpful if you intend to re-use a module's logic in another project, you will be able to quickly publish the needed version as a NuGet package. In the private or public NuGet registry
  • include targets that allow performing various additional quality checks such as static code analysis (currently we support out-of-the-box integration with SonarCloud)

Packages management

  • install, update, uninstall modules
  • install and update a platform application
  • prepare backend package with specific versions of the platform and modules from the manifest file

The platform cold start optimization and data migration (WIP)

  • platform start optimization (slow run on Azure case)
  • get idempotent SQL scripts for all modules EF migrations with the ability to apply them in a specific order without installed platform and source code (helpful for migration from VirtoCommerce platform version 2 (latest) to version 3)

Before you start

Before you start using VirtoCommerce.GlobalTool, install the following in order to use all its functionality:

  • .NET SDK 5.x
  • Node.js 12.x
  • Git SCM

Installation

Run this command to install VirtoCommerce.GlobalTool on your machine:


dotnet tool install VirtoCommerce.GlobalTool  -g

Updating

Run this command to update VirtoCommerce.GlobalTool to the latest version:


dotnet tool update VirtoCommerce.GlobalTool -g

Getting started

To use VirtoCommerce.GlobalTool by invoke the tool run the following command: vc-build

To get the list of all targets:


vc-build help

Command output:

NUKE Execution Engine version 5.0.2 (Windows,.NETCoreApp,Version=v2.1)

Target with name 'help' does not exist. Available targets are:
  - ChangeVersion
  - Clean
  - ClearTemp
  - Compile
  - CompleteHotfix
  - CompleteRelease
  - Compress
  - GetManifestGit
  - GrabMigrator
  - IncrementMinor
  - IncrementPatch
  - Init
  - InitPlatform
  - Install
  - InstallModules
  - InstallPlatform
  - MassPullAndBuild
  - Pack
  - Publish
  - PublishManifestGit
  - PublishModuleManifest
  - PublishPackages
  - QuickRelease
  - Release
  - Restore
  - SonarQubeEnd
  - SonarQubeStart
  - StartAnalyzer
  - StartHotfix
  - StartRelease
  - SwaggerValidation
  - Test
  - Uninstall
  - Update
  - UpdateManifest
  - ValidateSwaggerSchema
  - WebPackBuild

To get help for the specific target:


vc-build help NameOfTheTarget

Usage examples

Below you can see how the specific target could be used

Compress

The target is used to create a redistributed zip archive for a module or platform. After executing, the resulting zip is placed in artifacts folder. To execute this target, you need to run this command in the root module folder of the cloned from GitHub repository.


vc-build compress

Console output


═══════════════════════════════════════
Target             Status      Duration
───────────────────────────────────────
Clean              Executed        0:00
Restore            Executed        0:07
Compile            Executed        0:06
WebPackBuild       Executed        0:00
Test               Executed        0:05
Publish            Executed        0:01
Compress           Executed        0:01
───────────────────────────────────────
Total                              0:23
═══════════════════════════════════════

StartRelease, CompleteRelease, QuickRelease, StartHotfix, CompleteHotfix

Used to automate the routine operations with release branches

StartRelease:
  • creates and pushes the new branch release/version from dev
CompleteRelease:
  • merges release/version into master and pushes
  • merges into dev branch, increments version's minor and pushes
QuickRelease:
  • triggers StartRelease and then CompleteRelease
StartHotfix:
  • increments version's patch in master
  • creates and pushes the new branch hotfix/version
CompleteHotfix:
  • merges hotfix branch into master
  • adds tag and pushes

Packages management

The vc-build provides the set of targets that allow you to easily install, uninstall, and update platform dependencies by simple CLI commands execution.

Install
vc-build install (with no args)
vc-build install -platform -version <version>
vc-build install -module <module> -version <version>
vc-build install -module <module>:<version>

This command downloads and install into the current folder the platform or modules with versions that are passed as the command parameters or defined in vc-package.json.

vc-package.json - file is used to maintain the list of installed modules with their versions. This allows vc-build to easily restore the platform with the modules when on a different machine, such as a build server, without all those packages.

  • vc-build install (with no args)

This target downloads and install into the current folder the platform and modules with versions described in vc-package.json. If vc-package.json is not found in the local folder, by default the command will download and install the latest platform and modules versions that are marked with the commerce group.

By default, install target will install all modules listed as dependencies in vc-package.json.

Examples:

vc-build install 
  • vc-build install -platform -version <version>

Fetch and install the platform with the specific version. If the platform with specified version does not exist in the registry, then this will fail. If no version is specified, the latest platform version will be installed.

Examples:

vc-build install -platform
vc-build install -platform -version 3.55.0
  • vc-build install -module -version <version>

Install the specified version of the module. This will fail if the version has not been published to the registry. If no version is specified, the latest module version will be installed. You can also install multiple modules with a single command by specifying multiple modules with their versions as arguments.

If the module to be installed has dependencies, their latest versions will be installed along with it.

This command also modified the vc-package.json with the installed dependencies after successful command execution.

Examples:

vc-build install -module VirtoCommerce.Cart
vc-build install -module VirtoCommerce.Cart -version 3.12.0
vc-build install -module VirtoCommerce.Cart:3.12.0 VirtoCommerce.Core:3.20.0
Update
vc-build update (with no args)
vc-build update -platform -version <version>
vc-build update -module <module> -version <version>

This command will update the platform and all modules listed to the version specified by <version>, respecting semver. If <version> is not specified the component will updated to the latest version. If no args are specified, the platform and all modules in the specified location will be updated.

This command also updated the installed dependencies versions in the vc-package.json

Examples:

vc-build update
vc-build update -platform
vc-build update -platform -version 3.14.0
vc-build update -module VirtoCommerce.Cart
vc-build update -module VirtoCommerce.Cart -version 3.30.0
Uninstall
vc-build uninstall -module <module>

This uninstalls a module and completely removes all modules that depend on it. It also removes uninstalled modules from your vc-package.json.

Examples:

vc-build uninstall -module VirtoCommerce.Cart
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.804.0 3,272 8/26/2024
3.804.0-alpha.215 247 8/21/2024
3.804.0-alpha.214 77 8/21/2024
3.804.0-alpha.213 80 8/12/2024
3.803.0 1,528 8/12/2024
3.803.0-alpha.212 769 8/1/2024
3.803.0-alpha.211 39 7/31/2024
3.803.0-alpha.210 29 7/31/2024
3.803.0-alpha.209 32 7/31/2024
3.803.0-alpha.208 41 7/30/2024
3.803.0-alpha.206 145 6/6/2024
3.802.0 6,390 6/6/2024
3.802.0-alpha.205 410 5/29/2024
3.802.0-alpha.204 60 5/28/2024
3.802.0-alpha.203 117 5/10/2024
3.801.0 3,285 5/10/2024
3.801.0-alpha.202 79 5/8/2024
3.801.0-alpha.201 29 5/2/2024
3.801.0-alpha.200 16 5/2/2024
3.800.0 2,828 4/15/2024
3.800.0-alpha.197 65 4/15/2024
3.800.0-alpha.196 1,422 4/11/2024
3.800.0-alpha.195 124 4/10/2024
3.800.0-alpha.194 109 4/9/2024
3.800.0-alpha.193 78 4/9/2024
3.800.0-alpha.192 148 4/3/2024
3.800.0-alpha.190 72 3/29/2024
3.800.0-alpha.189 79 3/29/2024
3.800.0-alpha.188 226 3/26/2024
3.800.0-alpha.187 111 3/25/2024
3.800.0-alpha.186 75 3/25/2024
3.800.0-alpha.185 128 3/21/2024
3.800.0-alpha.184 74 3/21/2024
3.800.0-alpha.183 72 3/20/2024
3.800.0-alpha.182 65 3/19/2024
3.800.0-alpha.181 81 3/15/2024
3.800.0-alpha.180 66 3/12/2024
3.800.0-alpha.179 70 3/12/2024
3.800.0-alpha.178 86 3/11/2024
3.800.0-alpha.177 72 3/7/2024
3.800.0-alpha.176 106 2/22/2024
3.800.0-alpha.175 81 2/22/2024
3.21.5 5,195 3/12/2024
3.21.4 352 3/11/2024
3.21.3 515 3/6/2024
3.21.2 764 3/1/2024
3.21.1 891 2/23/2024
3.21.0 671 2/20/2024
3.21.0-alpha.173 65 2/20/2024
3.20.0 4,816 1/25/2024
3.20.0-alpha.171 329 1/24/2024
3.20.0-alpha.170 78 1/12/2024
3.20.0-alpha.169 81 1/11/2024
3.20.0-alpha.168 88 1/9/2024
3.20.0-alpha.167 88 12/26/2023
3.19.0 3,422 12/8/2023
3.19.0-alpha.165 77 12/7/2023
3.19.0-alpha.164 107 11/14/2023
3.19.0-alpha.163 69 11/13/2023
3.19.0-alpha.162 106 10/26/2023
3.19.0-alpha.161 128 10/4/2023
3.18.0 5,876 10/3/2023
3.18.0-alpha.159 127 10/3/2023
3.17.0 343 10/3/2023
3.17.0-alpha.157 104 9/22/2023
3.17.0-alpha.156 122 9/14/2023
3.17.0-alpha.155 99 9/13/2023
3.17.0-alpha.153 107 9/8/2023
3.16.0 3,982 8/24/2023
3.16.0-alpha.150 98 8/24/2023
3.16.0-alpha.149 87 8/24/2023
3.16.0-alpha.148 107 8/22/2023
3.16.0-alpha.147 94 8/22/2023
3.16.0-alpha.146 104 8/21/2023
3.15.0 9,405 8/8/2023
3.15.0-alpha.144 84 8/8/2023
3.15.0-alpha.143 124 8/7/2023
3.15.0-alpha.142 119 8/7/2023
3.15.0-alpha.141 136 7/10/2023
3.15.0-alpha.140 289 7/6/2023
3.15.0-alpha.139 125 7/6/2023
3.15.0-alpha.138 110 7/6/2023
3.15.0-alpha.137 100 6/15/2023
3.15.0-alpha.136 182 4/17/2023
3.14.0 9,549 4/17/2023
3.14.0-alpha.135 6,831 4/12/2023
3.14.0-alpha.134 203 4/6/2023
3.14.0-alpha.133 179 4/3/2023
3.13.0 1,389 4/3/2023
3.13.0-alpha.131 714 3/31/2023
3.13.0-alpha.130 198 3/29/2023
3.13.0-alpha.129 187 3/29/2023
3.13.0-alpha.128 342 3/24/2023
3.13.0-alpha.127 187 2/22/2023
3.13.0-alpha.126 2,015 2/21/2023
3.13.0-alpha.125 149 2/16/2023
3.12.0 4,112 2/16/2023
3.12.0-alpha.122 134 2/15/2023
3.12.0-alpha.121 176 2/8/2023
3.12.0-alpha.120 217 1/30/2023
3.12.0-alpha.118 176 1/20/2023
3.11.1 6,028 1/20/2023
3.11.0 522 1/19/2023
3.11.0-alpha.116 167 1/19/2023
3.11.0-alpha.113 159 1/18/2023
3.11.0-alpha.112 175 1/18/2023
3.11.0-alpha.111 157 1/18/2023
3.11.0-alpha.110 154 1/17/2023
3.11.0-alpha.109 179 1/16/2023
3.11.0-alpha.108 153 1/16/2023
3.11.0-alpha.107 184 1/13/2023
3.11.0-alpha.106 151 12/22/2022
3.11.0-alpha.105 137 12/21/2022
3.10.1 3,104 12/22/2022
3.10.0 1,865 12/21/2022
3.10.0-alpha.104 146 12/20/2022
3.10.0-alpha.103 143 12/20/2022
3.10.0-alpha.102 160 12/12/2022
3.10.0-alpha.101 139 12/12/2022
3.10.0-alpha.100 135 12/6/2022
3.10.0-alpha.99 2,884 12/1/2022
3.10.0-alpha.98 145 12/1/2022
3.10.0-alpha.96 123 11/29/2022
3.9.0 2,512 11/29/2022
3.9.0-alpha.95 131 11/28/2022
3.9.0-alpha.94 125 11/28/2022
3.8.0 12,264 10/24/2022
3.7.0 759 10/17/2022
3.7.0-alpha.92 201 9/26/2022
3.7.0-alpha.91 262 8/29/2022
3.7.0-alpha.90 158 8/24/2022
3.7.0-alpha.89 161 8/19/2022
3.6.0 3,853 8/19/2022
3.6.0-alpha.88 3,612 8/17/2022
3.6.0-alpha.87 165 8/12/2022
3.6.0-alpha.85 170 8/12/2022
3.6.0-alpha.84 173 7/21/2022
3.5.0 2,001 7/21/2022
3.5.0-alpha.83 175 7/21/2022
3.5.0-alpha.80 191 5/26/2022
3.4.1 4,473 5/27/2022
3.4.0 1,136 5/26/2022
3.4.0-alpha.76 176 5/26/2022
3.4.0-alpha.75 198 5/25/2022
3.3.0 2,006 4/26/2022
3.3.0-alpha.73 208 4/26/2022
3.3.0-alpha.72 202 4/20/2022
3.3.0-alpha.71 194 4/14/2022
3.3.0-alpha.70 250 4/14/2022
3.3.0-alpha.69 261 4/6/2022
3.3.0-alpha.67 164 4/5/2022
3.3.0-alpha.66 184 3/31/2022
3.2.0 2,167 3/31/2022
3.2.0-alpha.55 190 3/31/2022
3.2.0-alpha.54 181 3/30/2022
3.2.0-alpha.53 192 3/23/2022
3.2.0-alpha.52 188 2/25/2022
3.1.0 1,579 2/25/2022
3.1.0-alpha.51 191 2/25/2022
3.1.0-alpha.50 565 2/7/2022
3.1.0-alpha.49 188 2/3/2022
3.1.0-alpha.48 189 2/1/2022
3.1.0-alpha.47 208 2/1/2022
3.1.0-alpha.46 186 2/1/2022
3.1.0-alpha.45 191 1/31/2022
3.1.0-alpha.44 196 1/28/2022
3.0.0 2,209 1/28/2022
3.0.0-alpha.43 189 1/28/2022
3.0.0-alpha.42 200 1/28/2022
2.6.0-alpha.41 183 1/26/2022
2.6.0-alpha.40 192 1/25/2022
2.6.0-alpha.39 188 1/21/2022
2.5.1 5,384 2/2/2022
2.5.0 1,538 1/21/2022
2.5.0-alpha.38 182 1/21/2022
2.5.0-alpha.37 195 1/20/2022
2.5.0-alpha.36 206 1/18/2022
2.5.0-alpha.35 188 1/13/2022
2.4.0 644 1/13/2022
2.4.0-alpha.34 183 1/13/2022
2.4.0-alpha.33 189 1/12/2022
2.3.0 454 1/12/2022
2.3.0-alpha.32 178 1/12/2022
2.3.0-alpha.31 179 12/28/2021
2.2.0 593 12/28/2021
2.2.0-alpha.30 189 12/27/2021
2.2.0-alpha.29 1,150 12/20/2021
2.2.0-alpha.28 207 12/17/2021
2.2.0-alpha.27 201 12/17/2021
2.2.0-alpha.26 178 12/17/2021
2.2.0-alpha.25 220 12/15/2021
2.1.0 1,172 10/1/2021
2.1.0-alpha.24 222 12/15/2021
2.1.0-alpha.22 279 12/14/2021
2.1.0-alpha.21 214 12/8/2021
2.1.0-alpha.20 185 11/29/2021
2.1.0-alpha.19 208 11/29/2021
2.1.0-alpha.18 198 11/29/2021
2.1.0-alpha.17 3,128 11/26/2021
2.1.0-alpha.15 197 9/30/2021
2.1.0-alpha.14 355 9/29/2021
2.1.0-alpha.12 205 9/23/2021
2.1.0-alpha.11 228 9/22/2021
2.1.0-alpha.10 223 9/22/2021
2.1.0-alpha.9 203 9/3/2021
2.0.0 3,193 8/20/2021
2.0.0-beta0011 262 8/20/2021
2.0.0-beta0010 380 7/22/2021
2.0.0-beta0009 277 7/22/2021
2.0.0-beta0008 309 7/22/2021
2.0.0-beta0007 628 7/13/2021
2.0.0-beta0006 299 7/13/2021
2.0.0-beta0005 334 7/7/2021
2.0.0-beta0004 303 7/6/2021
2.0.0-beta0003 303 7/1/2021
2.0.0-beta0002 283 7/1/2021
2.0.0-beta0001 447 6/24/2021
2.0.0-alpha.38 219 8/20/2021
2.0.0-alpha.37 230 8/19/2021
2.0.0-alpha.36 235 8/19/2021
2.0.0-alpha.35 194 8/19/2021
2.0.0-alpha.34 207 8/18/2021
2.0.0-alpha.33 210 8/17/2021
2.0.0-alpha.32 204 8/16/2021
2.0.0-alpha.30 202 8/13/2021
2.0.0-alpha.28 211 8/13/2021
2.0.0-alpha.26 204 8/5/2021
2.0.0-alpha.20 270 8/2/2021
2.0.0-alpha.19 668 7/22/2021
2.0.0-alpha.16 210 7/22/2021
2.0.0-alpha.7 205 8/20/2021
1.7.5 17,165 5/28/2021
1.7.4 2,052 5/26/2021
1.7.3 557 5/26/2021
1.7.3-beta0005 450 5/21/2021
1.7.3-beta0004 283 5/21/2021
1.7.3-beta0003 318 5/20/2021
1.7.3-beta0002 292 5/20/2021
1.7.3-beta0001 295 5/20/2021
1.7.2 806 5/18/2021
1.7.2-beta0015 286 5/17/2021
1.7.2-beta0014 274 5/14/2021
1.7.2-beta0013 238 5/14/2021
1.7.2-beta0012 237 5/14/2021
1.7.2-beta0011 261 5/14/2021
1.7.2-beta0010 251 5/13/2021
1.7.2-beta0009 475 5/12/2021
1.7.2-beta0008 282 5/12/2021
1.7.2-beta0007 393 5/7/2021
1.7.2-beta0006 426 5/5/2021
1.7.2-beta0005 256 5/5/2021
1.7.2-beta0004 335 5/4/2021
1.7.2-beta0003 258 5/4/2021
1.7.2-beta0002 257 5/4/2021
1.7.2-beta0001 253 5/4/2021
1.7.1 1,183 4/30/2021
1.7.1-beta0002 412 4/29/2021
1.7.1-beta0001 297 4/29/2021
1.7.0 675 4/21/2021
1.7.0-beta0001 252 4/16/2021
1.6.0 583 4/12/2021
1.6.0-beta0001 821 4/9/2021
1.5.2 475 4/6/2021
1.5.2-beta0012 389 4/5/2021
1.5.2-beta0011 274 4/2/2021
1.5.2-beta0010 588 3/25/2021
1.5.2-beta0009 290 3/25/2021
1.5.2-beta0008 310 3/23/2021
1.5.2-beta0007 316 3/23/2021
1.5.2-beta0006 626 3/4/2021
1.5.2-beta0005 539 2/18/2021
1.5.2-beta0004 295 2/18/2021
1.5.2-beta0003 289 2/18/2021
1.5.2-beta0002 292 2/18/2021
1.5.2-beta0001 277 2/18/2021
1.5.1 2,645 1/26/2021
1.5.0 512 1/25/2021
1.4.19-beta0002 396 1/19/2021
1.4.19-beta0001 247 1/13/2021
1.4.18 3,755 11/3/2020
1.4.17 1,017 10/21/2020
1.4.16 579 10/19/2020
1.4.15 1,073 10/5/2020
1.4.14 558 10/5/2020
1.4.13 778 9/25/2020
1.4.12 565 9/25/2020
1.4.11 564 9/24/2020
1.4.10 541 9/24/2020
1.4.9 536 9/24/2020
1.4.8 648 9/22/2020
1.4.7 571 9/22/2020
1.4.6 827 9/11/2020
1.4.5 537 9/10/2020
1.4.4 645 9/9/2020
1.4.3 565 9/7/2020
1.4.2 606 9/4/2020
1.4.1 604 9/3/2020
1.4.0 642 8/31/2020
1.3.7 667 8/21/2020
1.3.6 582 8/19/2020
1.3.5 855 8/13/2020
1.3.4 653 8/5/2020
1.3.3 580 8/5/2020
1.3.2 558 8/4/2020
1.3.1 546 8/4/2020
1.3.0 653 7/22/2020
1.2.0 583 7/9/2020
1.1.1 595 6/26/2020
1.1.0 589 6/25/2020
1.0.2 627 6/18/2020
1.0.1 598 6/11/2020
1.0.0 2,863 6/8/2020