LinuxCommandLibrary

sgpt

Command-line productivity tool powered by OpenAI's GPT models.

TLDR

Use it as a search engine, asking for the mass of the sun

$ sgpt "[mass of the sun]"
copy


Execute Shell commands, and apply chmod 444 to all files in the current directory
$ sgpt --shell "[make all files in current directory read only]"
copy


Generate code, solving classic fizz buzz problem
$ sgpt --code "[solve fizz buzz problem using Python]"
copy


Start a chat session with a unique session name
$ sgpt --chat [session_name] "[please remember my favorite number: 4]"
copy


Start a REPL (Read–eval–print loop) session
$ sgpt --repl [command]
copy


Display help
$ sgpt --help
copy

Copied to clipboard