# \#cli

**URL:** https://community.n8n.io/tag/cli/67.md

[Latest](https://community.n8n.io/latest.md) · [Categories](https://community.n8n.io/categories.md) · [Tags](https://community.n8n.io/tags.md)

---

## [After breaking a production workflow with a node rename, I built a tool to check what references a node first](https://community.n8n.io/t/after-breaking-a-production-workflow-with-a-node-rename-i-built-a-tool-to-check-what-references-a-node-first/327154)

<div class="topic-metadata">

**Author:** [@omertdev](https://community.n8n.io/u/omertdev)\
**Replies:** 0\
**Last updated:** [November 6, 2026, 4:49pm UTC](https://community.n8n.io/t/after-breaking-a-production-workflow-with-a-node-rename-i-built-a-tool-to-check-what-references-a-node-first/327154 "2026-11-06T16:49:18Z")

</div>

I run about ten production workflows for a fintech project, and three things kept happening to me: I renamed a node and something downstream broke without any error. I spent an hour tracing a broken expression. I watch…

---

## [Import:workflow fails with workflow\_entity.id NOT NULL violation on PostgreSQL 15.19 (n8n 2.38.7)](https://community.n8n.io/t/import-workflow-fails-with-workflow-entity-id-not-null-violation-on-postgresql-15-19-n8n-2-38-7/316735)

<div class="topic-metadata">

**Author:** [@Rock\_and\_roll](https://community.n8n.io/u/Rock_and_roll)\
**Replies:** 10\
**Last updated:** [October 6, 2026, 7:33am UTC](https://community.n8n.io/t/import-workflow-fails-with-workflow-entity-id-not-null-violation-on-postgresql-15-19-n8n-2-38-7/316735 "2026-10-06T07:33:48Z")

</div>

Describe the problem/error/question I am running n8n 2.38.7 self-hosted with Docker in queue mode and PostgreSQL 15.19. When I try to import a single inactive workflow using: n8n import:workflow --input=.json the impo…

---

## [n8m — a CLI that generates, tests, and deploys n8n workflows from a plain-English description](https://community.n8n.io/t/n8m-a-cli-that-generates-tests-and-deploys-n8n-workflows-from-a-plain-english-description/274947)

<div class="topic-metadata">

**Author:** [@lcanady](https://community.n8n.io/u/lcanady)\
**Replies:** 0\
**Last updated:** [March 9, 2026, 12:28pm UTC](https://community.n8n.io/t/n8m-a-cli-that-generates-tests-and-deploys-n8n-workflows-from-a-plain-english-description/274947 "2026-03-09T12:28:51Z")

</div>

Hey everyone — I built something for this community specifically and wanted to share it here first. n8m is a free, open-source CLI that wraps your n8n instance with an agentic AI layer. Instead of building workflows by …

---

## [Configure source control (Git) via environment variables, CLI, and API for IaC/GitOps deployments](https://community.n8n.io/t/configure-source-control-git-via-environment-variables-cli-and-api-for-iac-gitops-deployments/261609)

<div class="topic-metadata">

**Author:** [@romainn](https://community.n8n.io/u/romainn)\
**Replies:** 1\
**Last updated:** [February 9, 2026, 4:45pm UTC](https://community.n8n.io/t/configure-source-control-git-via-environment-variables-cli-and-api-for-iac-gitops-deployments/261609 "2026-02-09T16:45:25Z")

</div>

The idea is: Allow full Git source control configuration without the UI, through three complementary interfaces: 1. Environment Variables New environment variables to pre-configure Git on startup: Variable Type Des…

---

## [Workflow unresponsive, only fixed with a GUI deactivate and activate](https://community.n8n.io/t/workflow-unresponsive-only-fixed-with-a-gui-deactivate-and-activate/167220)

<div class="topic-metadata">

**Author:** [@Paul\_Littlefield](https://community.n8n.io/u/Paul_Littlefield)\
**Replies:** 0\
**Last updated:** [August 13, 2025, 3:37pm UTC](https://community.n8n.io/t/workflow-unresponsive-only-fixed-with-a-gui-deactivate-and-activate/167220 "2025-08-13T15:37:14Z")

</div>

I have a workflow that becomes unresponsive on odd occasions. I am guessing about once a week. It is triggered with a Telegram bot message and works fine 75% of the time. When it seems ‘stuck’ I have to go in to the w…

---

## [N8n cli only package](https://community.n8n.io/t/n8n-cli-only-package/88959)

<div class="topic-metadata">

**Author:** [@rantoniuk](https://community.n8n.io/u/rantoniuk)\
**Replies:** 8\
**Last updated:** [March 20, 2025, 12:35pm UTC](https://community.n8n.io/t/n8n-cli-only-package/88959 "2025-03-20T12:35:15Z")

</div>

I would like to be able to interact with n8n via API using the CLI. I can’t seem to find any cli-only package that I can install on my MacOs tnat would allow me to talk with a remote n8n API. I checked the docs, npm sit…

---

## [Execute workflow from CLI produces different results](https://community.n8n.io/t/execute-workflow-from-cli-produces-different-results/78124)

<div class="topic-metadata">

**Author:** [@Giulio\_Bider](https://community.n8n.io/u/Giulio_Bider)\
**Replies:** 4\
**Last updated:** [February 28, 2025, 4:53pm UTC](https://community.n8n.io/t/execute-workflow-from-cli-produces-different-results/78124 "2025-02-28T16:53:40Z")

</div>

Describe the problem/error/question I have a workflow triggered by a change on a sheet on Google Drive. The workflow works perfectly when triggered manually by the UI Editor. However, when I execute the workflow from the…

---

## [Error when using CLI to import workflows](https://community.n8n.io/t/error-when-using-cli-to-import-workflows/49584)

<div class="topic-metadata">

**Author:** [@MarioGuimaraes](https://community.n8n.io/u/MarioGuimaraes)\
**Replies:** 6\
**Last updated:** [July 8, 2024, 5:08pm UTC](https://community.n8n.io/t/error-when-using-cli-to-import-workflows/49584 "2024-07-08T17:08:38Z")

</div>

Describe the problem/error/question When I use the CLI to import all or a workflow, I get this error What is the error message (if any)? ~ $ n8n import:workflow --input=/files/n8n-workflows/CpDs6GApbWob6kud.json User se…

---

## [Run n8n cli for n8n installed inside docker](https://community.n8n.io/t/run-n8n-cli-for-n8n-installed-inside-docker/18335)

<div class="topic-metadata">

**Author:** [@masmoek](https://community.n8n.io/u/masmoek)\
**Replies:** 2\
**Last updated:** [July 2, 2024, 4:09pm UTC](https://community.n8n.io/t/run-n8n-cli-for-n8n-installed-inside-docker/18335 "2024-07-02T16:09:12Z")

</div>

Hi, tried run command n8n cli from terminal and it said that n8n not installed… i have n8n installed inside docker, how to run the cli command? i want to backup my workflows to e directory

---

## [Setting all workflows to active not working](https://community.n8n.io/t/setting-all-workflows-to-active-not-working/34901)

<div class="topic-metadata">

**Author:** [@Neil\_Buckley](https://community.n8n.io/u/Neil_Buckley)\
**Replies:** 5\
**Last updated:** [January 24, 2024, 1:00pm UTC](https://community.n8n.io/t/setting-all-workflows-to-active-not-working/34901 "2024-01-24T13:00:41Z")

</div>

Describe the problem/error/question The docs say that I can do n8n update:workflow --all --active=true, However the code seems only to be able to set individuals workflows activate by id. Running the suggested comman…

---

## [N8N running as a service backup](https://community.n8n.io/t/n8n-running-as-a-service-backup/35272)

<div class="topic-metadata">

**Author:** [@andym](https://community.n8n.io/u/andym)\
**Replies:** 3\
**Last updated:** [January 14, 2024, 6:39pm UTC](https://community.n8n.io/t/n8n-running-as-a-service-backup/35272 "2024-01-14T18:39:36Z")

</div>

Hi everybody. I have installed n8n on an Ubuntu 22.04 and I’m running it by starting n8n as a service. When I try to backup data (workflows and credentials) from CLI I can’t export the flows that are running in the insta…

---

## [Import flow at installation time](https://community.n8n.io/t/import-flow-at-installation-time/34554)

<div class="topic-metadata">

**Author:** [@Ruan17](https://community.n8n.io/u/Ruan17)\
**Replies:** 3\
**Last updated:** [January 3, 2024, 11:37am UTC](https://community.n8n.io/t/import-flow-at-installation-time/34554 "2024-01-03T11:37:27Z")

</div>

I want to install n8n, and when I access it for the first time there is already flow inside, how can I do this?

---

## [Import workflow through cli in n8n](https://community.n8n.io/t/import-workflow-through-cli-in-n8n/34122)

<div class="topic-metadata">

**Author:** [@Nazih\_Saba](https://community.n8n.io/u/Nazih_Saba)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 4:40pm UTC](https://community.n8n.io/t/import-workflow-through-cli-in-n8n/34122 "2023-12-14T16:40:56Z")

</div>

Describe the problem/error/question I have a workflow that imports my workflows to n8n. I use the Execute command to import it. It was working normally before, and after updating to version 1.20.0, its giving me this err…

---

## [CLI workflow imports failing after upgrade to v1.18.0](https://community.n8n.io/t/cli-workflow-imports-failing-after-upgrade-to-v1-18-0/33780)

<div class="topic-metadata">

**Author:** [@Roney\_Dsilva](https://community.n8n.io/u/Roney_Dsilva)\
**Replies:** 5\
**Last updated:** [December 13, 2023, 5:27pm UTC](https://community.n8n.io/t/cli-workflow-imports-failing-after-upgrade-to-v1-18-0/33780 "2023-12-13T17:27:16Z")

</div>

Describe the problem/error/question ~/repo $ n8n import:workflow --input=workflows.json An error occurred while importing workflows. See log messages for details. Cannot read properties of undefined (reading ‘on’) Inf…

---

## [Reset user password](https://community.n8n.io/t/reset-user-password/33716)

<div class="topic-metadata">

**Author:** [@Sakthi\_Vel](https://community.n8n.io/u/Sakthi_Vel)\
**Replies:** 1\
**Last updated:** [December 2, 2023, 12:28pm UTC](https://community.n8n.io/t/reset-user-password/33716 "2023-12-02T12:28:50Z")

</div>

Hi, As previously mentioned, You don’t currently have a support plan that includes Email support. You can find our community support forum here: http://community.n8n.io/ to create a new post you will need to register a…

---

## [CLI - workflow does not exist](https://community.n8n.io/t/cli-workflow-does-not-exist/33541)

<div class="topic-metadata">

**Author:** [@Kool\_Baudrillard](https://community.n8n.io/u/Kool_Baudrillard)\
**Replies:** 2\
**Last updated:** [November 28, 2023, 10:07pm UTC](https://community.n8n.io/t/cli-workflow-does-not-exist/33541 "2023-11-28T22:07:13Z")

</div>

Describe the problem/error/question Hi, i´m often running workflows via cli. Since upgrading to Postgres from sqlite I get the message: What is the error message (if any)? n8n execute --id doPQFFohnjYueIos The workflow…

---

## [Stop execution from terminal](https://community.n8n.io/t/stop-execution-from-terminal/32464)

<div class="topic-metadata">

**Author:** [@illusionandcards](https://community.n8n.io/u/illusionandcards)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 7:43am UTC](https://community.n8n.io/t/stop-execution-from-terminal/32464 "2023-11-08T07:43:47Z")

</div>

Good day, I have a workflow with a “code” node that has been using 100% of the CPU for a while, so I can’t access n8n. I tried deactivating the workflow with the terminal using docker exec -u node -it n8n-container n8n…

---

## [CLI command - import failing](https://community.n8n.io/t/cli-command-import-failing/31572)

<div class="topic-metadata">

**Author:** [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Replies:** 1\
**Last updated:** [October 15, 2023, 4:13pm UTC](https://community.n8n.io/t/cli-command-import-failing/31572 "2023-10-15T16:13:39Z")

</div>

Describe the problem/error/question The commands: n8n export:workflow --backup --output=/path n8n export:credentials --backup --output=/path worked just fine. But when i tried to import them into the other instance, …

---

## [Errors importing workflows via CLI with PostgreSQL](https://community.n8n.io/t/errors-importing-workflows-via-cli-with-postgresql/26927)

<div class="topic-metadata">

**Author:** [@hndmn](https://community.n8n.io/u/hndmn)\
**Replies:** 13\
**Last updated:** [August 24, 2023, 6:14pm UTC](https://community.n8n.io/t/errors-importing-workflows-via-cli-with-postgresql/26927 "2023-08-24T18:14:26Z")

</div>

Has anyone had this problem? We use the CLI to import all workflows from our repository every time n8n starts in Docker. We are using PostgreSQL. When we are running docker compose from scratch (no volumes yet exist for …

---

## [CLI output correct format?](https://community.n8n.io/t/cli-output-correct-format/29452)

<div class="topic-metadata">

**Author:** [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Replies:** 9\
**Last updated:** [August 17, 2023, 9:21am UTC](https://community.n8n.io/t/cli-output-correct-format/29452 "2023-08-17T09:21:26Z")

</div>

Describe the problem/error/question When running CLI commands, example, Export workflows and credentials (CLI commands | n8n Docs), the output isn’t straight-forward, in my case. It shows additional warnings/info etc. (m…

---

## [CLI commands not working in v1.x.x?](https://community.n8n.io/t/cli-commands-not-working-in-v1-x-x/29309)

<div class="topic-metadata">

**Author:** [@shrey-42](https://community.n8n.io/u/shrey-42)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 8:54am UTC](https://community.n8n.io/t/cli-commands-not-working-in-v1-x-x/29309 "2023-08-14T08:54:53Z")

</div>

Describe the problem/error/question CLI commands, via the “Execute Command” node don’t seem to be working anymore. Has something changed regarding their configuration/usage? What is the error message (if any)? Pleas…

---

## [Restore backups of Workflows](https://community.n8n.io/t/restore-backups-of-workflows/9205)

<div class="topic-metadata">

**Author:** [@zocket](https://community.n8n.io/u/zocket)\
**Replies:** 9\
**Last updated:** [August 7, 2023, 1:26pm UTC](https://community.n8n.io/t/restore-backups-of-workflows/9205 "2023-08-07T13:26:27Z")

</div>

Hi all, just had a question that popped my mind. Let’s say I usually backup all my workflows to a google drive folder or any storage every week once. How can I restore the backups if I have alot of workflows? Do I add t…

---

## [Disable “Deactivating workflow during import”](https://community.n8n.io/t/disable-deactivating-workflow-during-import/28217)

<div class="topic-metadata">

**Author:** [@yavetal](https://community.n8n.io/u/yavetal)\
**Replies:** 3\
**Last updated:** [July 18, 2023, 7:56pm UTC](https://community.n8n.io/t/disable-deactivating-workflow-during-import/28217 "2023-07-18T19:56:24Z")

</div>

Version 0.226, apparently, disabled the feature i’ve made a couple of weeks ago for my syncer: workflow activation based on the workflow name: “Deactivating workflow during import”. Can i disable that deactivating and …

---

## [N8n CLI workflows not activating](https://community.n8n.io/t/n8n-cli-workflows-not-activating/27295)

<div class="topic-metadata">

**Author:** [@Tim\_C](https://community.n8n.io/u/Tim_C)\
**Replies:** 3\
**Last updated:** [June 20, 2023, 6:17am UTC](https://community.n8n.io/t/n8n-cli-workflows-not-activating/27295 "2023-06-20T06:17:01Z")

</div>

Describe the problem/error/question When running n8n update:workflow --all --active=true I get this output: Deactivating all workflows What is the error message (if any)? docker-n8n-1 | UserSettings were generated a…

---

## [CLI export credentials](https://community.n8n.io/t/cli-export-credentials/27109)

<div class="topic-metadata">

**Author:** [@fmarrot](https://community.n8n.io/u/fmarrot)\
**Replies:** 14\
**Last updated:** [June 15, 2023, 4:17pm UTC](https://community.n8n.io/t/cli-export-credentials/27109 "2023-06-15T16:17:06Z")

</div>

Describe the problem/error/question I am unable to export credentials using CLI command. Does it works using MySQL database configuration ? What is the error message (if any)? Error exporting credentials. See log messa…

---

## [Import json workflow in n8n docker](https://community.n8n.io/t/import-json-workflow-in-n8n-docker/26612)

<div class="topic-metadata">

**Author:** [@alceni](https://community.n8n.io/u/alceni)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 1:47pm UTC](https://community.n8n.io/t/import-json-workflow-in-n8n-docker/26612 "2023-05-29T13:47:49Z")

</div>

and how to recover the workflows at once, I tried the cli but I am not able to recover my workflouw , is there any flow that does this? my flows are all in google drive already in json format I’ve tried everything I can…

---

## [How to generate migration files in n8n cli repo?](https://community.n8n.io/t/how-to-generate-migration-files-in-n8n-cli-repo/26355)

<div class="topic-metadata">

**Author:** [@khoa203](https://community.n8n.io/u/khoa203)\
**Replies:** 1\
**Last updated:** [May 19, 2023, 8:44am UTC](https://community.n8n.io/t/how-to-generate-migration-files-in-n8n-cli-repo/26355 "2023-05-19T08:44:31Z")

</div>

Describe the problem/error/question I have forked the n8n repo, and I am adding a feature that requires generating new migration files. However, I am not able to figure out a way to run typeorm cli to do that What is th…

---

## [How to import credentials to my new server using CLI](https://community.n8n.io/t/how-to-import-credentials-to-my-new-server-using-cli/25837)

<div class="topic-metadata">

**Author:** [@Mohdlatif](https://community.n8n.io/u/Mohdlatif)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 7:38pm UTC](https://community.n8n.io/t/how-to-import-credentials-to-my-new-server-using-cli/25837 "2023-05-03T19:38:30Z")

</div>

Here is my attempt but keep saying: no such file or directory

---

## ["n8n import:workflow --separate" does not import all .json files](https://community.n8n.io/t/n8n-import-workflow-separate-does-not-import-all-json-files/20502)

<div class="topic-metadata">

**Author:** [@Georgina](https://community.n8n.io/u/Georgina)\
**Replies:** 9\
**Last updated:** [February 28, 2023, 9:16am UTC](https://community.n8n.io/t/n8n-import-workflow-separate-does-not-import-all-json-files/20502 "2023-02-28T09:16:24Z")

</div>

Describe the issue/error/question I have built 24 workflows, and I exported all of them with n8n export:credentials --backup --output=backups/latest/, which correctly results in 24 json files. Then I start a new n8n con…

---

## [Inconsistency while importing workflows & credentials](https://community.n8n.io/t/inconsistency-while-importing-workflows-credentials/17383)

<div class="topic-metadata">

**Author:** [@hansenquadros](https://community.n8n.io/u/hansenquadros)\
**Replies:** 9\
**Last updated:** [February 14, 2023, 2:33pm UTC](https://community.n8n.io/t/inconsistency-while-importing-workflows-credentials/17383 "2023-02-14T14:33:37Z")

</div>

Issue While importing workflows & credentials into a new docker container only partial workflows & credentials get imported and not all of them present in the export json. Also, on re-import on the new docker container,…

[Next page](https://community.n8n.io/tag/cli/67.md?match_all_tags=true&page=1&tags%5B%5D=cli)
