feat(n8n): add limit parameter to make import command

This commit is contained in:
Yury Kossakovsky
2026-01-02 16:08:50 -07:00
parent 5a279b4a0a
commit 3f93b8a367
5 changed files with 12 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ help:
@echo " make show-restarts Show restart count per container"
@echo " make doctor Run system diagnostics"
@echo " make import Import n8n workflows from backup"
@echo " make import n=10 Import first N workflows only"
@echo ""
@echo " make switch-beta Switch to beta (develop branch)"
@echo " make switch-stable Switch to stable (main branch)"
@@ -78,4 +79,8 @@ switch-stable:
sudo bash ./scripts/update.sh
import:
ifdef n
docker compose -p $(PROJECT_NAME) run --rm -e FORCE_IMPORT=true -e IMPORT_LIMIT=$(n) n8n-import
else
docker compose -p $(PROJECT_NAME) run --rm -e FORCE_IMPORT=true n8n-import
endif