Skip to content

Astal CLI

AGS provides aliases for the Astal CLI.

Request

ts
App.start({
    requestHandler(request: string, res: (response: any) => void) {
        if (request == "say hi") {
            res("hi cli")
        }
        res("unknown command")
    },
})
sh
astal say hi --instance astal
# hi cli
sh
ags request "say hi" --instance astal
# hi cli

List

sh
astal --list
sh
ags list

Opening the inspector

sh
astal --inspector --instance astal
sh
ags inspect --instance astal

Window toggling

sh
astal --toggle-window window-name --instance astal
sh
ags toggle window-name --instance astal

Quitting App

sh
astal --quit --instance astal
sh
ags quit --instance astal