diff --git a/cli/Makefile b/cli/Makefile
index 9658f79bd71242fea2c946f8788ed2c568a3fc28..3d84b6274ec11b5106fb1eaad79ff13b1c745d87 100644
--- a/cli/Makefile
+++ b/cli/Makefile
@@ -27,4 +27,5 @@ build-if-not-exists: preflight
 
 .PHONY: config
 config: ## Edit your koolbox environment config
+	mkdir -p "${XDG_CONFIG_HOME}/koolbox/"
 	${EDITOR} "${XDG_CONFIG_HOME}/koolbox/env"