Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use it as a cli for local repo #4

Open
user753 opened this issue Dec 28, 2024 · 11 comments
Open

Option to use it as a cli for local repo #4

user753 opened this issue Dec 28, 2024 · 11 comments
Assignees

Comments

@user753
Copy link

user753 commented Dec 28, 2024

I think it would be useful to have this tool as a cli

@matbgn
Copy link

matbgn commented Dec 28, 2024

I would love to be able to point local repo in fact!

@ahmedkhaleel2004
Copy link
Owner

ahmedkhaleel2004 commented Dec 28, 2024

after i stabilize the deployment costs, this looks like it would be the top feature people are asking, to run it on local / private repos

the cli makes the most sense, since locally is the most secure and unratelimited way people would use this

@SaqAsh
Copy link

SaqAsh commented Dec 29, 2024

Hey! I am down to work on this

@martinrojas
Copy link

This is the right solution for the codebases that truly need this tool. Most corporate ones are unlikely to allow an online tool to connect to the code, but if it operates on a CLI with their own keys, it could definitely become a much more widely adopted tool. I would prioritize this over hosting.

@Trubador
Copy link

Trubador commented Feb 2, 2025

I second this and docker compose to host gitdiagram om my own server as well

@mcascone
Copy link

mcascone commented Mar 5, 2025

CLI could be cool, or you could add the option to point to a local repo in the UI. The docs to run it locally are good*, I've got it running.

* = The ReadMe says to enter Anthropic (Claude) API Key, but the .env has an OpenAI entry, and the Anthropic entry is commented out.

@tracure1337
Copy link

Yes this would be so cool. Not sure what I am missing but what is missing to be able to point it to a local repo?

@yufansong
Copy link

I agree, I really want to use it as a CLI tool for my local repo.

@chronikum
Copy link

That'd be really cool.

@yufansong
Copy link

I agree, I really want to use it as a CLI tool for my local repo.

I just write a draft version to convert the local repository directory to a diagram. It is not hard, take around 1 hours to do the refactor. But the code is too hacky. Hope I can have time to clean it in this weekend and open a PR for it.

@yufansong
Copy link

yufansong commented Apr 2, 2025

Hey guys,
I open a PR here #66. Not sure when will be merged. If anyone want to try local directory generation, please check my current branch here: https://github.com/yufansong/gitdiagram/tree/feat/local-service?tab=readme-ov-file#how-to-run-it-on-local-direcotry

I don't know front-end things. I only change the backend logic and do some tricky to by pass the frontend logic.

It may require you deploy it in your own machine which need install docker. It may take some time if you are not familiar with docker, but worth to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants