Up Previous Next Title Page Index Contents

9.1 Command line parameters

The following table summarizes the available command line parameters and their usage:
Command
Usage
abandon
Abandons the current transaction
commit
Commits the current transaction
condenseDatabase
Compacts the database by removing old versions of objects (cf. maintainDatabase)
createProject:
Creates a new project in the repository, or does nothing if it exists already. To be able to use the new project, you must first commit, and then set it as the default project with setProject:
currentDir:
Sets the MetaEdit+ working directory to be the directory in the argument. Argument is a string representing a directory name, or a file name within a directory. The file or directory must exist. Cannot be used when logged in.
document:into:
Documents Graph types in a human-readable and diffable textual format. For each Graph type matching the first wildcard argument, creates a subdirectory of the same name below the base directory specified in the second argument. Into each directory it outputs metamodel.txt, a comprehensive yet readable textual representation of the Graph type, and the Graph types’ generators as *.rep files
fileInPatch:
Imports the named program, type or model patch (.mep, met, .mec, .mxt, .mxm). Note you must be logged in for all but .mep patches.
fileInPatches
Imports .mep program patches. Patches are named in a patches.txt file in the current directory or patches subdirectory. If there is no patches.txt file, all .mep patches from the patches subdirectory are taken in alphabetical order.
forAll:run:
For all graphs matching the first wildcard argument, run the named generator.
forName:type:run:
For all graphs matching the first wildcard argument, and whose types match the second wildcard argument, run the named generator.
login
Login to database ‘db’ as user ‘user’ with password ‘user’
loginDB:user:password:
Logs in to the database named as user with password. The name for the database must a logical database name (i.e. not the directory name) found in artbase.roo file.
loginNewDB:dir:user:password:
Creates and logs in to a new database with the given name and directory, as the named sysadmin user with the given password.
logoutAndExit
Logs out and exits: use abandon or commit first to avoid dialogs
maintainDatabase
condenseDatabase + repository garbage collect
openAllProjects
Opens all the projects in the repository.
quit
Quits MetaEdit+ abruptly: no logout is performed. Use with care.
setProject:
Opens the named project and sets it as the default project
startAPI
Starts the API with default settings (hostname as localhost, port 6390 and event logging turned off).
startAPIHostname:port:logEvents:
Starts the API with given parameters.
stopAPI
Stops and closes all API Tools that have been started through the command-line mechanism (i.e. command-line, internal...execute, or API call). Will not affect manually started API Tools.

Up Previous Next Title Page Index Contents