Develop with Gatsby and Netlify CMS locally

Vincent Wong
2 min readApr 3, 2022

There are a number of story about the above topic, but they are in various places. I am writing this piece to put all in one place. My requirement of local development are:

  • Running the server in a head-less Ubuntu server. I have a Windows desktop, but I don’t want the server on the machine.
  • Acess the Netlify CMS locally, instead of served from Netlify cloud.

My Ubuntu server is running at IP and my browser is on my Windows desktop. Obviously, pointing the browser to http://localhost:8000 wouldn’t work. Neither pointing to You will get something like this:

Run this command will do the trick:

gatsby develop -H

Now you will see this:

If you want to access to CMS Content Manager and point the browser to, you will get this:

To access the admin page, you need to do the following:

npx netlify-cms-proxy-server

and add these lines to the admin/config.yml file:

allowed_hosts: ['']

Then you will see this: