Model, Component, and Package Management > Model management > Model Explorer > Command line interface - ScfUtils > Overview of command line interface for Model Explorer functions (Model Explorer)
  
Overview of command line interface for Model Explorer functions (Model Explorer)
You can perform the following Model Explorer functions through the ScfUtils command line interface:
Bookmarking databases.
Starting and stopping databases.
Listing all available databases.
Backing up and restoring databases.
Optimizing databases.
Creating and deleting databases.
Listing database users.
Clearing locks.
Adding server logins.
Adding database principals.
Synchronizing Active Directory group changes.
Transferring access permissions.
Exporting and importing Models.
Creating and deleting Models.
Cloning and versioning Models.
Protecting and unprotecting Models.
Branching, rebasing and reconciling Models.
Getting and setting the model comment.
If a ScfUtils command succeeds, 0 is returned; If a ScfUtils command fails, 1 is returned.
If you run ScfUtils with a -h parameter, a summary of the ScfUtils commands is listed.
Important In each case, the <server>, <database> and <model> names are case sensitive.
If you have installed Modeler to the default locations, ScfUtils resides in the following location:
C:\Program Files (x86)\PTC Integrity Modeler\Modeler\Exe\SCFUtils.exe
In addition, you can difference Models and Packages through the ModelDifferencer.exe command, create replicas through the createreplica command, and find and optionally delete orphaned items through the findorphans command.
To bookmark a database:
For more information refer to Mapping a Database through ScfUtils
ScfUtils -map Enterprise \\SQL\<server>@<instance>\<database>"
To start or stop a database:
For more information refer to Starting and Stopping a Database through ScfUtils
ScfUtils -startdb Enterprise \\SQL\<server>@<instance>\<database>"
ScfUtils -stopdb Enterprise \\SQL\<server>@<instance>\<database>"
To list all available databases
For more information refer to Listing all Available Databases through ScfUtils
ScfUtils -listdb Enterprise \\SQL\<server>@<instance>\<database>\<instance-name>"
To branch a model:
For more information refer to Branching a Model through ScfUtils
ScfUtils -sandboxmodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>"
To clone a model:
For more information refer to Cloning a Model through ScfUtils
ScfUtils -clonemodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<new model name>" <retain permissions 1 or 0> [\\SQL\<server>@<instance>\<database>"]
To create a model:
For more information refer to Creating a Model through ScfUtils
ScfUtils -addmodel Enterprise \\SQL\<server>@<instance>\<database>" "<new model name>"
To Create a replica:
For more information refer to Creating a replica through command line
createreplica Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" -d -f "<folder containing exported files>"
To delete a model:
For more information refer to Deleting a model through ScfUtils
ScfUtils -deletemodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>"
To difference a model or package:
For more information refer to Differencing Models and packages through the command line
Syntax is dependent on which difference operation is being performed.
To export a model:
For more information refer to Exporting a model through ScfUtils
ScfUtils -exportmodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<directory>"
To find and optionally delete orphaned items
For more information refer to Finding and optionally deleting orphaned items through ScfUtils
ScfUtils -findorphans Enterprise \\SQL\<server>@<instance>\<database>" [-D]
To generate a model branch report:
For more information refer to Generating a model branch report
ScfUtils -getmodelbranchreport Enterprise \\SQL\<server>@<instance>\<database>" "<file path and name>"
To generate a model family report:
For more information refer to Generating a model family report
ScfUtils -getmodelfamilyreport Enterprise \\SQL\<server>@<instance>\<database>" "<file path and name>"
To get a model's comment:
For more information refer to Getting the comment of a model through ScfUtils
ScfUtils -getmodelcomment Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<path and file name>"
To import a model (Unzipped):
For more information refer to Importing a model through ScfUtils
ScfUtils -importmodel Enterprise \\SQL\<server>@<instance>\<database>" "<directory>"
To import a model (Zipped):
For more information refer to Importing a zipped model through ScfUtils
ScfUtils -importzippedmodel Enterprise \\SQL\<server>@<instance>\<database>" "<zip file>"
To protect a model:
For more information refer to Protect a model through ScfUtils
ScfUtils -protectmodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>"
To rebase a model:
For more information refer to Rebasing a model through ScfUtils
ScfUtils -rebasemodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<path and name of log file>"
To reconcile a branch to the trunk
For more information refer to Reconciling a branch to a model through ScfUtils
ScfUtils -reconcilemodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<path and name of log file>"
To reconcile a branch to another branch:
For more information refer to Reconcile a branch to another branch through ScfUtils
ScfUtils - mergesandboxes Enterprise "\\SQL\<source server>\<source database>\<source model>\<source version>" "\\SQL\<target server>\<target database>\<target model>\<target version>" "<log file>" [-X]
To remove a bookmark from a database:
For more information refer to Unmapping a database through ScfUtils
ScfUtils -unmap Enterprise \\SQL\<server>@<instance>\<database>"
To rename a model:
For more information refer to Renaming a model through ScfUtils
ScfUtils -renamemodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<new model name>"
To set a model's comment:
For more information refer to Setting the comment of a model through ScfUtils
ScfUtils -setmodelcomment Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" "<text>"
To unprotect a model:
For more information refer to Unprotect a model through ScfUtils
ScfUtils -unprotectmodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>"
To update all PTC profiles in a model:
For more information refer to Updating all atego profiles in a model through ScfUtils
ScfUtils -updateallprofiles Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>" [-B] [-A]
To upgrade a model:
For more information refer to Upgrading a database through ScfUtils
ScfUtils -upgrade Enterprise \\SQL\<server>@<instance>\<database>"
To version a model:
For more information refer to Version a model through ScfUtils
ScfUtils -versionmodel Enterprise \\SQL\<server>@<instance>\<database>\<model>\<version>"