Can't see any change after i import workflow from file

Hi @Asaf_Shay, thanks for the example! It doesn’t seem like the CLI can import JSON files downloaded from the UI. It would throw an error An error occurred while exporting workflows. See log messages for details. File does not seem to contain workflows.. The CLI is expecting an array (which is also what it would export). Once that array is present, the import does however work as expected.

Here’s exactly what I did.

  1. Current Status: One Workflow with ID 17 and a name of Delete me later.
  2. Exporting the Workflow JSON through the UI:
  3. Changing the name of the workflow directly in the file downloaded in the the previous step and wrapping the JSON object in an array:
File Content
[{
  "name": "__CHANGED Delete me later",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    }
  ],
  "connections": {},
  "active": false,
  "settings": {},
  "id": 17
}]
  1. Importing the updated file using n8n import:workflow --input=Delete_me_later.json:
  2. Reloading the workflow:

The new name has now taken effect (and this would also be visible in the SQLite database).

So could you double-check whether you are getting any errors on importing the workflow?