WorkspaceConsole utility parameters
-help
Displays the comprehensive list of utility parameters and their brief descriptions. If you specify other parameters, the utility ignores them.
-operation
The name of the operation to execute. Required. The default value is LoadLicResponse
.
Available values
LoadLicResponse | Uploads licenses to the database specified in the connection string. The only operation that does not require the |
SaveRepositoryContent | Saves the *.zip package archives specified in the |
SaveDBContent | Saves the database content to the file system. The |
SaveVersionSvnContent | Dumps the package hierarchy as a set of *.zip archives. The |
RegenerateSchemaSources | Re-generates the source code and compiles it. Requires the |
InstallFromRepository | Imports the package content and properties from *.zip archives into the configuration. If needed, the utility runs bound SQL scripts, re-generates source code, and installs bound data. Works exclusively with updated or new packages and their elements. Requires either the |
InstallBundlePackages | Installs the bundle of packages listed in the |
PrevalidateInstallFromRepository | Checks if installing packages from *.zip archives is possible. |
ConcatRepositories | Merges several repositories. |
ConcatSVNRepositories | Merges several SVN repositories. |
ExecuteProcess | Runs the business process in the configuration if the utility detects such a process. Requires the |
UpdatePackages | Updates the packages ( |
BuildWorkspace | Compiles the workspace (configuration). Use when developing schemas in Visual Studio. Learn more: Write C# code. Requires the |
ReBuildWorkspace | Recompiles the workspace (configuration). Use when developing schemas in Visual Studio. Learn more: Write C# code. Requires the |
UpdateWorkspaceSolution | Updates the solution and files of the Visual Studio project. Learn more: Write C# code. |
BuildConfiguration | Generates the static content in the file system. Learn more: Set up WorkspaceConsole for compilation. Uses the following parameters:
Requires either the |
RestoreConfiguration | Restores the configuration from the package backup. Requires the |
UpdateConfiguration | Updates the configuration. |
DeletePackages | Deletes the packages from configuration. Requires the |
ChangeFeatureState | Changes the feature status. Requires the |
ExecuteScript | Runs out-of-the-box or custom executable code (*.dll). |
SetFileStorageConnectionString | Changes connection settings for external file storage, for example, S3 or Azure Blob. This is useful to arrange automation, such as rotating credentials regularly. Available in Creatio 8.1.4 and later. Requires the |
Execute the BuildConfiguration
operation after executing the InstallFromRepository
, InstallBundlePackages
, UpdatePackages
operations to ensure Creatio works correctly.
-user
Username for authorization. Specify the value if the utility's configuration file lacks a username or you need to execute the operation on behalf of a different user.
-password
User password for authorization. Specify the value if the utility's configuration file lacks a user password or you need to execute the operation on behalf of a different user.
-featureCode
The code of the additional feature. If you change the feature absent from the database, the utility adds the corresponding record to the database table automatically. Required for ChangeFeatureState
operation.
-featureState
The status of the additional feature (true
– turned on, false
– turned off). Required for ChangeFeatureState
operation.
-adminUnitName
The name of the user (the Name
column value in the SysAdminUnit
database table) that changes the feature status. Required for ChangeFeatureState
operation.
If you specify the parameter, the utility modifies the corresponding record in the AdminUnitFeatureState
database table.
If you omit the parameter, the utility sets the default value for the feature (the DefaultState
column value in the Feature
database table).
-workspaceName
Name of the workspace (configuration) where the exported packages are specified. By default, all users work in the Default
workspace.
-packagesToDelete
The name of packages to delete. Can take multiple values separated by commas. Specify whether to delete the package as part of the configuration update. Required for DeletePackages
operation and optional for UpdateConfiguration
operation.
-autoExit
Specifies whether to end the utility process automatically after the operation finishes. Can be true
or false
. The default value is false
.
-processName
Name of the process to run.
-repositoryUri
Address of the SVN repository that stores the package structure and properties. Optional. If you specify the parameter, the utility uses its value instead of the value of the -workspaceName
parameter.
-sourceControlLogin
Login of the SVN repository user.
-sourceControlPassword
Password of the SVN repository user.
-workingCopyPath
Local directory of the working copies of packages stored in SVN.
-contentTypes
Type of content exported to the drive from the database.
Available values
SystemData | JSON data of system schemas. Dumps all system schemas and their columns except for data specified in the |
ConfigurationData | JSON data of configuration element schemas. Dumps all schemas except for data specified in the |
Resources | Localizable XML resources of configuration element schemas. |
LocalizableData | Localizable XML content of configuration element schemas. Dumps only the text columns. Specify additional restrictions in the |
Repository | ZIP workspace data. |
SqlScripts | SQL scripts bound to packages. |
Data | JSON data of system schemas and configuration element schemas. The combination of |
LocalizableSchemaData | Data of localizable objects. |
All | All content types. |
-sourcePath
Path to a local directory from which to fetch the data. For example, packages, schemas, or resources. Can accept several values separated by commas for the ConcatRepositories
and SaveVersionSvnContent
operations.
-destinationPath
Path to a temporary local directory to save the data. For example, packages, schemas, or resources.
-webApplicationPath
Path to the Creatio installation directory. The utility follows this path to fetch the database connection information from the ConnectionStrings.config
file. If you omit this parameter, the utility connects to the database specified in the configuration string in the utility's configuration file.
The -webApplicationPath
parameter specifies the path to the Terrasoft.WebApp directory for the BuildWorkspace
, ReBuildWorkspace
, and UpdateWorkspaceSolution
operations.
-configurationPath
Path to the ..\Terrasoft.WebApp\Terrasoft.Configuration
directory. The utility exports the source code and resources of user-made package schemas to this directory in the file system development mode.
-backupConfiguration
Specifies whether to back up the configuration before package installation. The default value is true
. Optional for InstallFromRepository
operation. Optional for UpdateConfiguration
operation.
-fileName
File name. Required for the LoadLicResponse
and ExecuteScript
operations.
-typeName
Name of the class whose instance is required for work. Service information. For example, set the parameter value to FileMigrator.Executor
when using FileMigrator utility. Required for the ExecuteScript
operation.
-excludedSchemas
Names of configuration element schemas to exclude from the operation.
-excludedSchemaColumns
Names of the columns of configuration element schemas to exclude from the operation.
-excludedWorkspaceNames
Names of the workspaces (configurations) to exclude from the operation.
-includedSchemas
Names of configuration element schemas to forcibly include in the operation.
-includedSchemaColumns
Names of the columns of configuration element schemas to forcibly include in the operation.
-cultureName
Language culture code. Required if you specify the Resources
and/or LocalizableData
values in the -contentTypes
parameter.
-schemaManagerNames
Names of configuration element schema managers in the operations. The default value is EntitySchemaManager
.
-packageName
Package name in the configuration specified in the -workspaceName
parameter. The utility downloads the packages on which the current package depends as well. If you omit the parameter, the utility downloads all packages of the configuration.
-clearWorkspace
Specifies whether to clear the workspace before the update. Can be true
or false
. The default value is false
.
-backupPath
Path to a local directory that contains the *.gz archives of package backups.
-installPackageSqlScript
Specifies whether to run the SQL scripts before and after saving the packages. Can be true
or false
. The default value is true
.
-installPackageData
Specifies whether to install the bound package data after saving the packages. Can be true
or false
. The default value is true
.
-updateDBStructure
Specifies whether to update the database structure after saving the packages. Can be true
or false
. The default value is true
.
-regenerateSchemaSources
Specifies whether to re-generate the source code after saving the packages to the database. Can be true
or false
. The default value is true
.
-continueIfError
Specifies whether to abort the installation after receiving the first error. If set to true
, the installation process goes through to the end. You will receive the list of the errors encountered. Can be true
or false
. The default value is false
.
Always set the -continueIfError
parameter to false
for the InstallFromSvn
and InstallFromRepository
operations. These operations manage updated or new packages and their elements. The utility detects the updated elements by comparing the new and existing package structures. As such, if you run the command without specifying the -continueIfError=true
key and an error occurs, then rerun the command for the same configuration, the second command will finish without errors yet will not update the database. In this case, the first operation synchronizes the package structures of the configuration and repository, meaning the second operation will be unable to detect the updated package elements.
-skipCompile
Specifies whether to run the compilation. Will work if you set the -updateDBStructure
parameter to false
. Can be true
or false
. The default value is false
.
-autoUpdateConfigurationVersion
Updates the configuration version in the database to the Creatio version. Can be true
or false
. The default value is false
.
-warningsOnly
Specifies whether to display an error notification if the utility detects an operation execution error. Can be true
or false
. The default value is false
.
-confRuntimeParentDirectory
Path to the parent directory of the ..\Terrasoft.WebApp\conf
directory. You must use the parameter in commands that compile Creatio or generate the static content:
RegenerateSchemaSources
InstallFromRepository
InstallBundlePackages
UpdatePackages
BuildWorkspace
RebuildWorkspace
ExecuteProcess
ExecuteScript
-dbCommandTimeout
Available for Creatio 8.1.4 and later. Sets the database connection timeout for any WorkspaceConsole operation. We recommend using the -dbCommandTimeout
parameter when the timeout cannot be changed using the ConnectionStrings.config
file parameters. For example, the PostgreSQL database server by default restricts setting a timeout greater than 1024. In this case, use the -dbCommandTimeout
parameter to set the PostgreSQL database connection timeout to greater than 1024.
-storageCode
Available in Creatio 8.1.4 and later. Storage code specified in the File content storages lookup. Required for the SetFileStorageConnectionString
operation.
-storageConnectionString
Available in Creatio 8.1.4 and later. Connection string specified in the connectionString
parameter of the ConnectionStrings.config
file. Required for the SetFileStorageConnectionString
operation.