A small Go CLI for everyday developer chores.
It can fetch API responses, format JSON files, and organize a messy folder by file type. I built it as a simple terminal tool, with readable output and clear errors.
Live site:
https://ghanshyamjha05.github.io/devtool-cli/
| Command | What it does |
|---|---|
get |
Fetches data from an HTTP/HTTPS URL |
format |
Validates and pretty-prints a JSON file |
clean |
Moves files into folders like Images, Documents, Code, Videos, etc. |
version |
Prints the installed version |
You need Go installed first.
go install github.com/GhanshyamJha05/devtool-cli@latestOn Windows, Go usually installs the binary here:
C:\Users\<your-name>\go\bin
If the command is not recognized, add that folder to your PATH and reopen the terminal.
The installed command name is:
devtool-cliCheck the available commands:
devtool-cli --helpFetch an API response:
devtool-cli get https://jsonplaceholder.typicode.com/posts/1Save the response to a file:
devtool-cli get https://jsonplaceholder.typicode.com/posts/1 --save post.jsonFormat a JSON file:
devtool-cli format ugly.jsonSave formatted JSON:
devtool-cli format ugly.json --save pretty.jsonClean a folder:
devtool-cli clean "C:\Users\you\Downloads"Use quotes when the folder path has spaces.
Show extra details:
devtool-cli clean "C:\Users\you\Downloads" --verboseKeep these things in mind:
- Install Go first.
- Use the same install command:
go install github.com/GhanshyamJha05/devtool-cli@latest. - Make sure Go's
binfolder is in PATH. - On Windows, the binary will usually be
devtool-cli.exe. - On macOS/Linux, it will usually be
devtool-cli. - Internet is needed for
go installand for thegetcommand. - The
cleancommand moves files, so test it on a sample folder first. - If a path has spaces, wrap it in quotes.
Quick check after installing:
devtool-cli version
devtool-cli --helpgit clone https://github.com/GhanshyamJha05/devtool-cli.git
cd devtool-cli
go build -o devtool-cli .Then run:
./devtool-cli --helpOn Windows Command Prompt:
devtool-cli.exe --helpdevtool-cli/
cmd/ command setup
internal/utils/ core logic
docs/ GitHub Pages site
testdata/ sample files
main.go
go.mod
This is still a small project. Good next upgrades would be tests, a dry-run option for clean, and better release automation.
MIT
