Suglite is a simple tool for watching file changes and automatically restarting processes.
Run the following command:
ingr sugliteOR
yarn global add github:wxn0brP/sugliteOR
bun add -g github:wxn0brP/sugliteThis downloads the suglite script and makes it executable.
Run with the default command:
sugliteRun with a custom command:
suglite -c node server.jsUse a predefined configuration: (e.g. for python)
suglite -p pySee suglite --help for more options.
While suglite is running, you can type:
| Command | Description |
|---|---|
rs |
manual restart |
quit |
exit the program |
help |
list available commands |
config |
show current configuration |
cls |
clear the console |
$<command> |
execute a shell command (eg $yarn add) |
$!<command> |
execute a shell command with pretty logging |
<event> |
execute a custom command from events |
<!event> |
execute a custom command from events without pretty logging |
Global configuration is stored in:
- Linux:
~/.config/suglite/config.json. - Windows:
%APPDATA%\suglite\config.json.
"json.schemas": [
{
"fileMatch": [
"suglite.json"
],
"url": "https://raw.githubusercontent.com/wxn0brP/suglite/refs/heads/master/schema.json"
}
],
"json5.schemas": [
{
"fileMatch": [
"suglite.json5"
],
"url": "https://raw.githubusercontent.com/wxn0brP/suglite/refs/heads/master/schema.json"
},
],