Maintaining multiple n8n environments

Is it possible to pull the workflows from branches in a github repo? We’d like to have 2 n8n self hosted environments - dev and prod. We’d like dev to pull in workflows from a develop/feature branch vs prod to pull in workflows from master. Is this even possible? How do users manage more than one environment?

Information on your n8n setup

  • n8n version: Hosted 0.176.0
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: Unsure
  • Running n8n via [Docker, npm,, desktop app]: Docker

Thank you!

I am not sure about deploying workflows from a dev to prod environment. But this workflow may help in your process

Hey @sona,

So what you could do is use the CLI tool to import / export workflows (CLI commands - n8n Documentation), you would need to build out a workflow or script to manage this process though.

You can also run a workflow from a url so if it is a public repo you can just use the link with an execute workflow node.