Having trouble exporting workflow via CLI

hi ,

i keep getting this error when trying to export workflow , i looked at the docker logs and there is no error. i am confused ,where else could the problem be?

image

I assume you’re using docker, for the simple fix, you can type

docker exec -it -u node your-n8n-service n8n export:workflow --all

I found same issues (with solutions) on n8n github.

You can check it here

thanks . after rethinking this again , it made sense , that the files are created inside the container . will need to have another step to copy the file from container to host machine before i can export it out from the server

Yep, because n8n ‘wrapped’ inside docker, you need to execute it within your docker too. Btw, You’re welcome, mate:)