Can't enable execute command node

Describe the problem/error/question

I pulled the latest docker image of n8n to test some stuff on my pc.
One thing required me to move a file, which I wanted to do with the Execute Command node.
Can’t create a node of this type though.
I already set some environment variables to the compose.yml and made sure to recreate the container, but the node still doesn’t show up.

  • N8N_ENABLE_EXECUTE_COMMAND=true
  • N8N_BLOCK_ENV_VARS_IN_EXECUTE_COMMAND=false

What is the error message (if any)?

No error, just can't find the node.

Information on your n8n setup

  • n8n version: 2.8.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): -
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker Desktop
  • Operating system: Windows 11

Hello @prm

Since n8n v2.0, the Execute Command node is disabled by default via the NODES_EXCLUDE environment variable and must be explicitly re‑enabled. [v2.0 breaking changes; Block nodes]

To make the node appear again:

  1. Set NODES_EXCLUDE so Execute Command is not excluded

    Either enable all nodes:

    environment:
      - NODES_EXCLUDE="[]"
    

    or, if you only want to keep LocalFileTrigger disabled:

    environment:
      - NODES_EXCLUDE="[n8n-nodes-base.localFileTrigger]"
    
  2. Recreate the container

    After changing docker-compose.yml:

    docker compose down
    docker compose up -d
    

The env var you want is NODES_INCLUDE or more likely you need to check that you’re setting the env vars in the right place in your compose file. They need to be under the environment: key for the n8n service, not at the top level. Can you paste the relevant part of your docker-compose.yml? Also double check the container actually restarted with docker compose down && docker compose up -d, sometimes docker compose restart doesn’t pick up env changes.

Hi, I needed to modify the NODES_EXCLUDE environment variable, the others didn’t work.

But your info about recomposing and making sure the list ain’t cached is very riveting.