How to export all my workflows

I use the CLI command from here

I get error
‘n8n’ is not recognized as an internal or external command

Hi @Asaf_Shay, how are you deploying n8n? If you’re running n8n using docker, you would need to run this command in your docker container, e.g. something like docker exec -it n8n /bin/sh -c "n8n export:workflow --all" if your container name is n8n.

I am not using docker, i just download the n8n project and run “npm run start”

So how do you run n8n?

I am not using docker, i just download the n8n project and run “npm run start”

So you’re running n8n directly from the repository? In this case, the binary would be in the packages/cli/bin directory. So you could cd into that directory and run it like .\n8n export:workflow --all on Windows or ./n8n export:workflow --all on Linux/MacOS X.

1 Like

thanks very helpful