Providing net global tool in order to manage acumatica website creation and deletion
In this repo, i m building a global tool that allows to create or delete acumatica websites.
The tool is based on multiple sub commmands :
- Use sub command
CreateSiteto create site- Use sub command
DeleteSiteto delete site- Use sub command
ListSitesto list iis sites- Use sub command
SwitchDbto switch site to use another database- Use sub command
ImportDbto import bacpac file into target database- Use sub command
ExportDbto export bacpac file from source databaseTo run code in debug or release mode, type the following commands in your favorite terminal :
.\App.exe ListSites.\App.exe CreateSite -x [XmlConfigFile].\App.exe DeleteSite -x [XmlConfigFile].\App.exe SwitchDb -s [CurrentWebSite] -d [TargetDatabaseName].\App.exe ImportDb -f [SourceBacPacFilePath] -s [SourceServerName] -d [TargetDatabaseName].\App.exe ExportDb -f [TargetBacPacFilePath] -s [SourceServerName] -d [SourceDatabaseName]To install, run, update, uninstall global tool from a local source path, type commands :
dotnet tool install -g --configfile .\Nugets\local.config AcuWebSiteManagerAcuWebSiteManager -hAcuWebSiteManager -cAcuWebSiteManager ListSitesAcuWebSiteManager CreateSite -hAcuWebSiteManager DeleteSite -hAcuWebSiteManager CreateSite -x [XmlConfigFile]AcuWebSiteManager DeleteSite -x [XmlConfigFile]AcuWebSiteManager SwitchDb -s [CurrentWebSite] -d [TargetDatabaseName]AcuWebSiteManager ImportDb -f [SourceBacPacFilePath] -s [SourceServerName] -d [TargetDatabaseName]AcuWebSiteManager ExportDb -f [TargetBacPacFilePath] -s [SourceServerName] -d [SourceDatabaseName]dotnet tool update -g AcuWebSiteManager --ignore-failed-sourcesdotnet tool uninstall -g AcuWebSiteManagerTo install global tool from nuget source, type these command :
dotnet tool install -g AcuWebSiteManager --ignore-failed-sources
Tools : net 8.0
