Skip to content

zeshantech/gincli

Repository files navigation

Gin CLI

ChatGPT Image Apr 21, 2025, 10_46_47 AM (1)

Gin CLI is a powerful command-line tool designed to help you quickly scaffold Gin Web Framework applications with a standardized project structure and essential components. Focus on building your application without the hassle of initial setup!

Installation

Install via curl

Example for Linux:

curl -LO https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-linux-amd64
chmod +x gin-linux-amd64
sudo mv gin-linux-amd64 /usr/local/bin/gin
gin --version

Example for macOS:

curl -LO https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-darwin-amd64
chmod +x gin-darwin-amd64
sudo mv gin-darwin-amd64 /usr/local/bin/gin
gin --version

For Windows (Using PowerShell):

Invoke-WebRequest -Uri "https://github.com/golang-programming/gincli/releases/download/v1.0.0/gin-windows-amd64.exe" -OutFile "gin.exe"
.\gin.exe --version

Install via Source code

git clone https://github.com/golang-programming/gincli.git
cd gincli
go build -o gin
sudo mv gin /usr/local/bin/

Commands

Command Alias Description
new n, create Create a new Gin application
generate g Generate components like controllers, guards, etc.
template t Load application startup templates

Generate Subcommands

Subcommand Alias Description
controller c Generate a new controller
guard gd Generate a new guard
resource r Generate a new resource
route rt Generate a new route
service s Generate a new service

Quick Start Examples

Create a New Application

gin n -a myapp

Generate a Resource with Restful Transport

gin g r product -t Restful

Load a Template

gin t -a ecommerce -y

Running the Application

After generating your application:

  1. Navigate to the Project Directory

    cd myapp
  2. Run the Application

    go run *.go

Support

For issues or suggestions, please contact us at:

📧 zeshanshakil0@gmail.com

Happy Coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published