/n8n-tutorials

How to update n8n to the latest version?

Learn how to update n8n to the latest version safely and easily with step-by-step instructions for smooth, reliable workflow automation.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free consultation

How to update n8n to the latest version?

To update n8n to the latest version, you normally just update the Docker image (if you're running n8n in Docker, which is what most production setups use) and then restart the container. If you're on n8n Cloud, you don’t update anything — it auto‑updates. If you're running a manual install (like npm on a VM), you upgrade the package. The key is: pull the newest version, restart cleanly, and make sure your environment variables and data folder stay intact.

 

How to Update n8n (Direct, Practical Answer)

 

If you run n8n in Docker, update by pulling the latest Docker image, stopping your current container, and starting a new one using the same volume that holds your data. On n8n Cloud, nothing to do — it updates automatically. For a non-Docker install, update via your package manager (for example: npm update -g n8n).

 

Detailed, Production-Ready Explanation

 

Below I’ll break down the update process depending on how you installed n8n. n8n is a Node.js app, but in production we almost always run it inside Docker because it’s safer, more consistent, and easier to upgrade. Every n8n installation has two important things:

  • The n8n application (the version you’re updating)
  • Your persistent data (the folder or database where credentials, workflows, and executions are stored)

When updating, you must replace the application but keep your data untouched. Docker makes this clean.

 

Updating n8n When Running in Docker (Most Common Setup)

 

This is the safe, standard way most teams upgrade:

  • Pull the newest version of n8n (the application)
  • Keep using the same volume that stores ~/.n8n (your actual data)
  • Restart the container

Here’s the exact sequence:

// Stop the container
docker stop n8n

// Remove the old container (your data is safe if it’s in a volume)
docker rm n8n

// Pull the newest n8n version
docker pull docker.n8n.io/n8nio/n8n:latest

// Restart using your existing environment variables + volume
docker run -d \
  --name n8n \
  -p 5678:5678 \
  -v ~/.n8n:/home/node/.n8n \
  docker.n8n.io/n8nio/n8n:latest

If you use Docker Compose (very common in production), update like this:

// Pull the newest version
docker compose pull

// Restart with the updated image
docker compose up -d

That’s it. Your workflows, credentials, and executions remain safe because they’re stored in your volume or database.

 

If You Are Running n8n Cloud

 

No update process exists on your side. n8n Cloud updates itself automatically and safely. You cannot and do not need to manually update.

 

If You Installed n8n via npm (NOT recommended for production)

 

This is mostly used for local development or hobby setups. To update:

// Update the global package
npm install -g n8n@latest

Then restart n8n:

n8n start

But again, npm installs are fragile for real workloads because they don’t handle restarts, logs, or environment consistency well. Use Docker for production.

 

Important Production Notes

 

  • Backups: Always back up your n8n data folder or your database before major upgrades. The data folder holds your encryption key; without it, credentials cannot be decrypted.
  • Environment variables: When restarting Docker, make sure the same variables (like JWT, encryption keys, database connection) are preserved.
  • Database version: If you use Postgres or MySQL, keep them running during the update – n8n will apply any needed migrations automatically.
  • Check breaking changes: Read n8n’s release notes for any breaking changes between your version and latest.

That’s the real, production-grade way to update n8n safely and cleanly.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022