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 10.5 > Foresight Analytics Platform 10.5 (see details in 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 system starts from the command line (cmd.exe), the ^DefaultRepository^ substitution should be escaped with the ^ character, that is, ^^DefaultRepository^^.

NOTE. When the object is opened for edit, the /sysdata::ObjectID|::#Object.Edit block should be enclosed in quotation marks.

All parameters except for MetabaseId are optional.

If the user name is not specified, integrated domain authorization is used. If the object to be started 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 enclosed in quotation marks. 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 FP10Full distribution file version.

See also:

Updating Platform | Update Features