How to Enable Execute Command?

Hi Everyone,

I’m new to n8n just now creating small automations. I’m running a internet service business for that i am creating automated IP pinging status notifier. For this automation i need to enable execute command i have googled and it shows to add N8N_EXECUTE_COMMAND_ENABLED to true in docker compose file. But i can’t able to find the docker compose file.

n8n desktop version - 2.2.4

docker version - 4.55.0

OS - Windows 10

Please help me on this issue. Thanks is advance

On n8n Desktop, there’s no docker-compose.yml to edit, so you can’t enable it via compose. The simplest way is to run n8n yourself in Docker (compose or docker run) and add the env var N8N_EXECUTE_COMMAND_ENABLED=true (and ideally N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true).
Another option on Windows Desktop is to set a Windows environment variable before starting n8n, but depending on the Desktop build/version it isn’t always picked up. For a “ping” use case, I’d recommend a dedicated n8n Docker setup.

n8n Desktop has no compose file to modify; to enable Execute Command, run n8n via Docker/compose with N8N_EXECUTE_COMMAND_ENABLED=true (or try a Windows env var, which can be unreliable on Desktop).

Currently, this variable no longer exists. To enable “Execute Command,” you must use NODES_EXCLUDE: "[]".
https://docs.n8n.io/hosting/configuration/environment-variables/nodes/

1 Like