Dokumentation: Flowy Util


Please support us to improve our service. We would like to use statistics anonymously.

We do not pass on your data! You can find more information in our privacy policy.

Decline

< Zurück zur Dokumentation

Flowy Util

Flowy Util ist ein kommandozeilenbasiertes Tool, das die folgenden Betriebsarten unterstützt:

  • Objekte exportieren oder importieren
  • Dateien verschlüsseln oder entschlüsseln

Flowy-Objekte exportieren oder importieren

Das CLI-Tool bietet eine einfache und effiziente Möglichkeit, Objekte mit der folgenden Syntax zu exportieren oder zu importieren:

$ java -jar flowy-cli.jar
--flowy.show-error-stacktrace=true
--flowy.username=admin@getflowy.io
--flowy.password=admin
--flowy.command=EXPORT_MODULE|IMPORT_MODULE|EXPORT_RESOURCE|INSERT_IMPORT_RESOURCE|UPDATE_IMPORT_RESOURCE
--flowy.base-url=http://localhost:8080/api
--flowy.resource-path=/module
--flowy.resource-name=module_test
--flowy.file=module.json
--flowy.overrides=status=ACTIVE,name=newModuleName

Dateien verschlüsseln oder entschlüsseln

Um verschlüsselte Dateien zu validieren oder wiederherzustellen, ist die folgende Syntax zu verwenden:

$ java -jar flowy-cli.jar
--flowy.show-error-stacktrace=true
--flowy.command=ENCRYPT|DECRYPT
--flowy.security.password=pass
--flowy.security.input-file=input.txt
--flowy.security.output-file=output.txt

Bibliotheken exportieren oder importieren

$ java -jar flowy-cli.jar
--flowy.username=admin@getflowy.io
--flowy.password=admin
--flowy.command=EXPORT_RESOURCE
--flowy.base-url=http://localhost:8080/api
--flowy.resource-path=/library
--flowy.resource-name=libraryName
--flowy.file=library.json

$ java -jar flowy-cli.jar
--flowy.username=admin@getflowy.io
--flowy.password=admin
--flowy.command=INSERT_IMPORT_RESOURCE
--flowy.base-url=http://localhost:8080/api
--flowy.resource-path=/library
--flowy.resource-name=libraryName
--flowy.file=library.json

Frontend-Einstellung aktualisieren

$ java -jar flowy-cli.jar
--flowy.username=admin@getflowy.io
--flowy.password=admin
--flowy.command=UPDATE_FRONTEND_SETTING
--flowy.base-url=http://localhost:8080/api
--flowy.frontend-setting-path=/global-setting/frontend
--flowy.file=settings.json

Beispiel für settings.json:

{
  "baseUrlRest": "https://example.getflowy.io/api/",
  "logServerUrl": "https://example.getflowy.io/logs/",
  "metricServerUrl": "https://example.getflowy.io/metric/",
  "visualisationServerUrl": "https://example.getflowy.io/visual/",
  "setPasswordUrl": "https://example.getflowy.io/set-password/",
  "defaultLocale": "en",
  "environmentName": "qa"
}

Standard-SMTP-Credentials aktualisieren

$ java -jar flowy-cli.jar
--flowy.username=admin@getflowy.io
--flowy.password=admin
--flowy.command=UPDATE_DEFAULT_SMTP_CREDENTIALS
--flowy.base-url=http://localhost:8080/api
--flowy.resource-path=/process-credential
--flowy.file=process-credentials.json

Beispiel für process-credentials.json:

{
  "status": "ACTIVE",
  "isGdprRelevant": false,
  "values": {
    "senderAddress": "senderAddress",
    "host": "examplesmtp.getflowy.io",
    "port": 587,
    "timeout": 10000,
    "password": "password",
    "username": "newinstallation@getflowy.io",
    "writeTimeout": 10000,
    "connectionTimeout": 10000
  },
  "encryptedFields": [
    {
      "type": "PLAIN",
      "field": "senderAddress"
    },
    {
      "type": "ENCRYPT",
      "field": "password"
    }
  ]
}

HTTP-Verbindung testen

$ java -jar flowy-cli.jar
--flowy.command=TEST_HTTP
--flowy.base-url=http://localhost:8080/api