docker exec -u node -it <n8n-container-name> <n8n-cli-command>n8n execute --id <ID>
n8n execute --id NGgtX67xWcwx2a3In8n update:workflow --id=<ID> --active=falsen8n update:workflow --id=<ID> --active=truen8n update:workflow --all --active=falsen8n update:workflow --all --active=trueFlag | Description |
--help | Help prompt. |
--all | Exports all workflows/credentials. |
--backup | Sets --all --pretty --separate for backups. You can optionally set --output. |
--id | The ID of the workflow to export. |
--output | Outputs file name or directory if using separate files. |
--pretty | Formats the output in an easier to read fashion. |
--separate | Exports one file per workflow (useful for versioning). Must set a directory using --output. |
--decrypted | Exports the credentials in a plain text format. |
n8n export:workflow --alln8n export:workflow --id=<ID> --output=file.jsonn8n export:workflow --all --output=backups/latest/file.jsonn8n export:workflow --backup --output=backups/latest/n8n export:credentials --alln8n export:credentials --id=<ID> --output=file.jsonn8n export:credentials --all --output=backups/latest/file.jsonn8n export:credentials --backup --output=backups/latest/n8n export:credentials --all --decrypted --output=backups/decrypted.jsonFlag | Description |
--help | Help prompt. |
--input | Input file name or directory if you use --separate. |
--projectId | Import the workflow or credential to the specified project. Can't be used with --userId. |
--separate | Imports *.json files from directory provided by --input. |
--userId | Import the workflow or credential to the specified user. Can't be used with --projectId. |
n8n import:workflow --input=file.jsonn8n import:workflow --separate --input=backups/latest/n8n import:credentials --input=file.jsonn8n import:credentials --separate --input=backups/latest/n8n license:clearn8n license:infon8n user-management:resetn8n mfa:disable --email=johndoe@example.comn8n ldap:resetn8n auditpsql -U <username> -d <database>