Using Command Line

Foresight Analytics Platform can be started from the command line by using specific syntax (shown below), for example, for automatic connection to repository and/or opening an object. When the platform is started from the command line, keys can be used.

Foresight Analytics Platform can also be started by selecting in the Windows start menu the Foresight Analytics Platform 9.2 > Foresight Analytics Platform 9.2 (for details see the Getting Started with Desktop and Web Applications section).

Starting Foresight Analytics Platform from Command Line

Foresight Analytics Platform can be started from the command line with automatic connection to repository and starting any repository object.

NOTE. Execution module cannot be started from the command line.

Syntax

Studio.exe [/user:Username] [/password:Password] /scheme:MetabaseId [/sysdata::ObjectID|::#Object.Edit]

where:

NOTE. If the start is executed from the command line (cmd.exe), then the ^DefaultRepository^ substitution should be escaped with the ^ character, that is determine ^^DefaultRepository^^.

NOTE. On selecting the object for edit, the /sysdata::ObjectID|::#Object.Edit block should be specified in quotes.

All parameters except for MetabaseId are optional.

If the user name is not specified, integrated domain authorization is used. If the object to be launched is not specified, it will be taken from settings of the specified user.

If the user password does not contain special characters and it contains only numbers, letters or underscore, the simplified syntax can be used:

Studio.exe Username/Password@MetabaseId:ObjectId|::#Object.Edit

On using the simplified syntax, the %DefaultRepository% substitution is used to connect to repository.

NOTE. On opening the object for edit, the ObjectId|::#Object.Edit block should be specified in quotes. The simplified syntax is outdated, it is kept for compatibility with previous versions of Prognoz Platform.

Examples

Studio.exe /user:PPUser /password:PPUser /scheme:ppScheme

Studio.exe PPUser/PPUser@ppScheme

Foresight Analytics Platform is started with connection to the ppScheme repository without displaying the login dialog box after executing this command.

Studio.exe /user:PPUser /password:PPUser /scheme:^DefaultRepository^

Studio.exe PPUser/PPUser@%DefaultRepository%

Foresight Analytics Platform is started with connection to the default repository after executing the command. The system login dialog box opens if no default repository is determined.

Studio.exe /user:PPUser /password:PPUser /scheme:ppScheme /sysdata::MainForm

Studio.exe PPUser/PPUser@ppScheme:MainForm

Foresight Analytics Platform is started with connection to the ppScheme repository without displaying the login dialog box after executing the command. After that the specified repository object is opened for view.

Studio.exe /user:PPUser /password:PPUser /scheme:ppScheme "/sysdata::MainForm|::#Object.Edit"

Studio.exe PPUser/PPUser@ppScheme:"MainForm|::#Object.Edit"

Foresight Analytics Platform is started with connection to the ppScheme repository without displaying the login dialog box after executing the command. After that the specified repository object is opened for edit.

NOTE. Object editing is available only after Foresight Analytics Platform is started using the Studio.exe or Cfg.exe files. The command is available for the Cfg.exe file on the installed FP9Full distribution file version.

See also:

Updating Platform | Update Features