|
Available from Version: 9.7 #SR1 |
|
|
|
|
The Backend CLI Tool is a command-line tool that is connected to the empower® Backend. |
|
|
It can be used by empower® Administrators. |
|
|
The Backend CLI Tool is used to fulfill the following tasks: |
|
|
|
|
The tool is installed via a separate .msi installer provided by empower. To install the tool, the following prerequisites must be met: |
|
|
|
|
After the installation, the tool is placed under the following path: %LocalAppData%\programs\empower\backendCli |
Important
The Backend CLI Tool can only be executed on Windows devices via the command-line.
The execution via PowerShell is not supported.
However, imported files are also available for empower® for macOS and usage data from macOS devices is also included in the usage report.
Note
You can also schedule the tasks to be executed automatically and periodically.
For further information regarding scheduling commands, see Schedule Commands.
|
To log in to the Backend CLI Tool, use the following command:
|
|
|
The command opens a login window. Log in to your user account. Depending on your configuration, this is either your empower® User or your Windows user. If your Windows user is used, you might not need to sign in manually. Your user's ID will be used automatically. In the command-line tool, you can see if your authentication has been successful. |
|
|
Once you have logged in successfully, you can also execute tasks unattended in quiet mode. |
|
|
To avoid login demands during automated tasks, always use the above command before scheduling any tasks. |
Note
If you use your empower® User to log in, you need to grant the permission User.Read for Microsoft Graph for the application.
For further information regarding this permission, see Microsoft Graph permissions reference.
A dialog box opens.
Here, accept the permissions to be granted.
Depending on the guidelines in place, it may occur that only administrators can grant the required permissions. If this is the case in your company, the dialog box informs you that you need to contact an administrator.
|
The tool can be used to export a report of the usage of different library content. This report reflects the data that is displayed for each library element on how often it has been used in the company. |
|
|
To export the report as a .csv file, use the following command:
|
|
|
The basic command consists of the following: |
|
|
|
|
Optionally, you can make the command be executed in quiet mode to schedule the task. To do so, add
|
Note
To run quiet mode, you must either run the command once in normal mode and log in during this task or have previously authenticated using the login command.
|
The report .csv file contains the following information per asset (Figure 1, “Usage Tracking Report”): |
|
|
|
|
To upload multiple files such as pictures or presentations to empower® at once, use the following command:
|
|
|
The basic command consists of the following: |
|
|
|
|
Optionally, you can make the command be executed in quiet mode to schedule the task. To do so, add
|
Important
The source path must not end with a character.
The target path must not end with a character.
|
Example |
|---|
|
Correct: Incorrect: |
|
Correct: Incorrect: |
|
The file paths to the folder on the machine and in the empower® Library must be specified in different ways. For the paths that lead to files on your device, specify the path in the default path structure, separated by back slashes (). If you specify the folder in the empower® Library using a path instead of the GUID, use the following format: %UserLibrary%>%MyContent%>[FOLDER NAME] |
|
|
The following table provides an overview of all valid folder paths and the respective supported file types that can be used within the command |
|
Folder Path |
Section in Library |
Supported File Types |
|---|---|---|
|
%CompanyLibrary% |
Company Library |
All supported file types in this table. |
|
%CorporateDesignTemplates%>%CorporatePresentations% |
Corporate Presentations |
.pptx, .pptm |
|
%CorporateDesignTemplates%>%DocumentTemplates% |
Document Templates |
.docx, .docm |
|
%CorporateDesignTemplates%>%Icons% |
Icons |
.jpg, .jpeg, .png, .gif, .svg, .tif In addition, .tiff is only supported if the parameter |
|
%CorporateDesignTemplates%>%Images% OR %CorporateDesignTemplates%>%Pictures% |
Pictures |
.jpg, .jpeg, .png, .gif, .svg, .tif In addition, .tiff is only supported if the parameter |
|
%CorporateDesignTemplates%>%MasterTemplates% |
Master Templates |
.pptx, .pptm |
|
%CorporateDesignTemplates%>%Slides% |
Slides |
.pptx, .pptm |
|
%UserLibrary%>%MyContent% OR %UserLibrary% |
My Content |
All supported file types in this table. |
Important
The folder names of the data to be imported must not contain any periods.
|
If you want to specify more details for the bulk upload, you can add the following parameters to your command: |
|
Command |
Short Form |
Description |
Default |
|---|---|---|---|
|
|
|
Defines if subfolders should be included. This parameter can be set to |
|
|
|
|
Defines if unsupported files are skipped. This parameter can be set to If this parameter is disabled and there are unsupported files, the import is canceled and a message opens. |
|
|
|
|
Defines the relative path to an additional .csv file containing metadata to be uploaded with the files. For further information, see Add Metadata to the Import. |
- |
|
|
|
Defines the path to archive the import folder after successfully uploading the files. The folder is then moved to the archive folder path and named after the time stamp. |
|
|
|
|
Defines the update notification behavior. This parameter can be set to This parameter does not affect Word files. Update notifications are only supported for individual slides, presentations saved on a user's device, pictures in Word and pictures in PowerPoint uploaded via the parameter |
|
|
|
|
Defines if translations should be marked as outdated when files in a translation group are overwritten. This parameter can be set to This parameter depends on the parameter |
|
|
|
|
Defines if existing files in the empower® Library are overwritten. For this update to work, the imported file and the existing file must have the same name. This parameter can be set to If this parameter is disabled, existing files are skipped. |
|
|
|
|
Defines if only files are updated that have been changed since the last import. This parameter can be set to |
|
|
|
|
Defines if the legacy picture format for empower® for PowerPoint is used. This parameter can be set to If this parameter is enabled, the picture files will only be imported to empower® for PowerPoint. If this parameter is disabled, the picture files are uploaded in a global format which is compatible with empower® for PowerPoint, Word, Excel and Outlook. |
|
Important
If pictures are imported in the global file format which works for library content in all Office applications, updates do not work for empower® for PowerPoint. In addition, there is no version history for those files.
Therefore, the files are uploaded but the users do not receive update notifications.
For pictures in Word uploaded in the global file format, however, users do still receive update notifications.
|
If you want to add metadata to your imported files, e.g. tags, you can create a separate .csv file containing this information. During the import, the relative path to this file must be specified in the command. |
|
|
Place the file in the import source folder or one of its subfolders. Then, specify the relative path based on the source folder. |
|
|
The content of the file should include the following, in the same order: |
|
|
|
|
The following excerpt provides an example for the structure of the .csv file: |
|
Picture File 1.png;New Picture Name;"tag1;tag2;tag3"; Images\Picture File 2.png;;"tag4;tag5;tag6"; Slides\PowerPoint File 1.pptx;New Slide Name;"tag7;tag8";x Presentations\PowerPoint File 2;;"tag9"; |
|
Note
If one of the specifications remains empty, e.g. if you do not want to specify a new name for the file, leave this space empty.
If so, there are two semicolons right next to each other (see line 2 and 4 in the sample structure).
Note
Not all files from the import folder need to be included in the .csv file.
|
The upload process and potential errors are logged in a log file as well as in the command-line tool. The log file is stored under the following path: %LocalAppData%\empower\Logs\backendCli |
|
|
In the command-line tool, the errors are only logged if it is used in normal mode. In quiet mode, errors are only logged in the log file. |
Comments
0 comments
Article is closed for comments.