Command Line Interface¶
By default, the Emakin agent is configured to run as windows service or daemon mode but it can be run in CLI (Command Line Interface) mode.
CLI interface provides additional options for configuration or diagnostics.
Commands¶
help¶
Prints the available list of commands. Some of the options may depend on the operating system and if not listed if not compatible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
Installation Commands¶
install¶
Installs the agent service as windows service. Only available in windows operating systems.
1 |
|
uninstall¶
Uninstalls the agent windows service. Only available in windows operating systems.
1 |
|
basex¶
Installs the basex service as windows service. Only available in windows operating systems.
1 |
|
ubasex¶
Uninstalls the basex Windows service. Only available in Windows operating systems.
1 |
|
redis¶
Installs the redis as a Windows service. Only available in Windows operating systems.
1 |
|
uredis¶
Uninstalls the Redis Windows service. Only available in Windows operating systems.
1 |
|
Configuration Commands¶
setconfig¶
Sets a configuration setting in an encrypted format.
1 |
|
By default, all configuration parameters are stored in plain text JSON files but sensitive settings like database connection string can be encrypted. Encrypted settings are stored in this path, and the previous layers are overwritten.
<installdir>/Configuration/Data/protectedsettings.json
Warning
Encrypted configuration settings can be only written and cannot be read back. If you lost this file all values are cannot be retrieved.
For example, the database connection string can be set with;
1 |
|
After this command is executed a new protectedsettings.json file is created in the āConfiguration/Dataā directory and stores the encrypted connection string.
1 2 3 |
|
Any configuration value from <installdir>/appsettings.json
file can be set with setconfig parameter and child sections can be specified with the ā:ā qualifier.
1 |
|
registerstore¶
Registers a new data store to be shared across all tenants.
1 |
|
applicationName specifies the host application and storeName specifies the name of the new store. The shared data store name must begin with āPS_ā prefix.
1 |
|
Optionally if you specify a process definition path, all tables in the process definition are created in the new store. If omitted blank data store is created.
1 |
|
Agent Commands¶
start¶
Starts agent in console mode with all modules active.
1 |
|
web¶
Starts agent only in web server mode. Other services like background jobs or SMTP services will not be started.
1 |
|
agent¶
Starts agent in only agent mode. Other services like the web server or SMTP services will not be started.
1 |
|
smtp¶
Starts agent in only SMTP service mode.
1 |
|
Maintenance Commands¶
cleanup¶
Executes the cleanup tasks.
1 |
|
Warning
This is destructive command and clean-up actions cannot be reverted back, please use it with caution.
Clean-up action performs the following tasks;
-
Deletes the orphan records in domain membership tables.
-
Deletes the orphan group members.
-
Deletes the orphan organization unit positions.
-
Deletes the orphan organization unit position members.
-
Deletes the orphan user logins.
-
-
Optimizes all tenant full-text databases.
-
Optimizes the applicationās full-text database.
-
Backup the orphan XML databases and removes them from the database.
-
Deletes the orphan form data.
fulltextmerge¶
Executes the full-text merge operation on active full-text service to optimize the database.
1 |
|
This command can take a long time depending on the number of records and may cause performance degradation during live use.
fulltextlist¶
Lists the currently defined full-text catalog database names.
1 |
|
Database names are listed as plain text.
1 2 3 4 |
|
fulltextdump¶
Executes a full-text search and dumps the result in the console for diagnostics.
1 |
|
This command is used to inspect full-text database records and dumps every matching record as a document.
The domain name parameter is optional, if not specified the search is executed in the application database.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
When the domain name parameter is specified, the search is executed in the domain database.
1 2 3 4 5 6 7 8 |
|
fulltextreset¶
Resets the full-text database content and initiates the re-indexing process.
1 |
|
Since this operation empties the contents of the database, users may see empty lists in the interface until the indexing process is completed. Therefore, it is not recommended to run it during active usage hours.
fulltextindex¶
Re-index one or more items in the full-text catalog.
1 |
|
This operation may include more than one record to be indexed. Record numbers can be separated by the characters ā,ā or ā;ā.
1 |
|
1 |
|
ssltest¶
Performs SSL connection test against target host
1 |
|
This command used to inspect SSL connectivity test with given host and dumps results with common used SSL protocols.
Port parameter is optional, if not specified 443 value is used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|