Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1 KB

File metadata and controls

67 lines (45 loc) · 1 KB

Installation & Building

Prerequisites

  • Go (1.18 or later recommended)
  • MongoDB (running instance)

Installation

To install gothctl to your $GOPATH/bin:

go install github.com/ayush00git/gothctl@latest

Building from Source

To build the binary locally:

git clone https://github.com/ayush00git/gothctl.git
cd gothctl
go build -o gothctl

Make sure your $GOPATH/bin is in your system's PATH.

Usage

Run gothctl to see available commands:

gothctl

Start the Server

To start the goth server:

gothctl serve

Flags:

  • -p, --port string: Port on which the goth server listens (default "8080").

Example:

gothctl serve --port 9090

User Management

gothctl allows you to manage users via the user command.

Create a User

To create a new user interactively:

gothctl user create

List users:

(only for admins and super-admins)

gothctl user list