Skip to main content

Create

The CLM can be used to create a scope from a template using the create job.

<clm> create --template=<template> --scope=<scope> --admin=<admin>

Parameters:

ParameterDescription
templateTemplate identifier (name of the folder in which it is located)
scopeIdentifier of the scope to be created
adminName of the user who owns the new scope
ws.urlThe FlowerDocs CORE url. Example : localhost:8081/core/services
userThe admin account ID
passwordThe password for the admin account

Delete

To delete a scope, you can use the delete job, such as:

<clm> delete --scope=<scope>

Reset

Jobs can be merged; resetting a scope can be done using the delete and create jobs:

<clm> delete create --template=<template> --scope=<scope>

Update

The update job is used to update an existing scope.

  • Components present in the template but absent from the initial scope will be added.
  • Components that differ from the initial scope will be updated.
  • Documents present in the initial scope but absent from the template will not be deleted.

This job can be used, for example, to update a scope's configuration without deleting existing documents.

The update can proceed even if the template doesn't include a scope.xml file. In this case, objects that may be configured in this file, as teams, and which have been created after the scope initialisation will not be removed.


Example: Update HR scope

<clm> update --template=simple --scope=HR

There are also more specific update jobs. These allow you to update only a certain type of configuration.

JobDescription
update-configUpdating configuration files
update-modelUpdate component classes, tags, categories and workflow
update-contentUpdating content (documents, folders, virtual folders and tasks)
update-scopeUpdate scope.xml file (which manages ACLs, display names, scope teams, etc.)

Export

A scope can be exported using the export job. This job creates a template from an existing scope.

<clm> export --scope=<scope> --template=<template>

Parameters:

ParameterDescription
scopeIdentifier of the scope to be exported
templateIdentifier of the template to be created (name of the folder in which it is located)
ws.urlThe FlowerDocs CORE url. Example : localhost:8081/core/services
userThe admin account ID
passwordThe password for the admin account

By default, the scope will be exported to a data folder in the runtime directory.

To change the directory where the export will be stored, add the --data.dir=&lt;chemin&gt; parameter to the command &lt;clm&gt;


There are also more specific export jobs.

JobDescription
export-configExport configuration files
export-modelExport component classes, tags, categories and workflow
export-contentExport content (documents, folders, virtual folders and tasks)
export-scopeExport scope.xml file (which manages ACLs, display names, scope teams, etc.)
export-annotationsExport document's annotations

The export or export-config jobs do not get annotations. Only the export-annotations job export it. Before version 2025.2.0, annotations were exported by export-config job.

Job list

Only some of the operations can be carried out. Below is a complete list of possible operations:

ImportExportMerge
scope-importscope-exportscope-merge
tag-category-importtag-category-exporttag-category-merge
tag-class-importtag-class-exporttag-class-merge
document-class-importdocument-class-exportdocument-class-merge
folder-class-importfolder-class-exportfolder-class-merge
task-class-importtask-class-exporttask-class-merge
workflow-importworkflow-exportworkflow-merge
virtual-folder-class-importvirtual-folder-class-exportvirtual-folder-class-merge
acl-importacl-exportacl-merge
technical-document-importtechnical-document-exporttechnical-document-merge
document-importdocument-exportdocument-merge
folder-importfolder-exportfolder-merge
virtual-folder-importvirtual-folder-exportvirtual-folder-merge
task-importtask-exporttask-merge
facts-importfacts-merge

In addition to these operations, there is a job to purge the caches of the FlowerDocs Core part named purge-cache.


Example: Import tag classes only

<clm> tag-class-import --scope=<scope>