Update n8n CLI workflows command (import/export) to support folders


I tried to export organized workflows in folders using the official export method for workflows command n8n export:workflow --all --output=/tmp/workflows.json, but the folder settings did not appear on the second instance when import. Both instances have the same version and are up to date.

I also tried the old-fashioned migration (database tables to=> database tables) using the same encryption keys, but the n8n on the second instance refused the credential values and asked to set them up again. Other problems also occurred, so I realized it’s not a good idea to manipulate the databases directly.

I think the only option we have now to ask it as feature and wait the votes… Please vote for this FR, And motivate the n8n team work on release update for the n8n cli. :raised_hands: