# Possible to Configure Git Settings and Open Project Using CLI?

**URL:** <https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691>\
**Category:** General\
**Created:** [18 January 2024 16:14 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691 "2024-01-18T16:14:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [18 January 2024 16:14 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691/1 "2024-01-18T16:14:38Z")

</div>

I'm deploying and configuring a fleet of Pis using Ansible and have everything working well to the point where I need to tell Node Red what my Git settings are and to open an existing project that has already been cloned from Github to the projects folder.

Is it possible to do this using node-red-admin or is there a settings file somewhere I can update using Ansible so I don't have to log in to 50+ individual Pis to do it manually? 🙂

---

<div class="post-metadata">

**Author:** ![rxw](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rxw](https://discourse.nodered.org/u/rxw)\
**Post date:** [22 January 2024 14:43 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691/2 "2024-01-22T14:43:57Z")

</div>

It should be possible to achieve required using Ansible by adding new project to NR configuration (.config.projects.json), create necessary folder structure (under 'projects' folder) and pull latest workflow from your git repository.

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [26 January 2024 13:37 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691/3 "2024-01-26T13:37:00Z")

</div>

Thank you. I had already cloned the repo but hadn't modified .config.projects.json or .config.users.json. What I ended up doing was backing up those two files from a working system and restoring them (using Ansible) to a fresh install and restarting Node Red. It sure didn't like that. It still wanted me to configure Git and it won't even open my project when I select it.

 ![MWSnap-RC2_ 2024-01-26, 07_33_08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7dae83c662fb25c96674fbc0738675564684c52.png)

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [27 January 2024 16:16 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691/4 "2024-01-27T16:16:16Z")

</div>

I submitted a feature request because this is impossible based on similar questions in the forum and nothing in the documentation stating otherwise. I'll just have to forego git integration.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 March 2024 16:16 UTC](https://discourse.nodered.org/t/possible-to-configure-git-settings-and-open-project-using-cli/84691/5 "2024-03-27T16:16:38Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
