Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw service

Start the factory at login (systemd, launchd, or Task Scheduler)

kusaw service

Start the factory at login (systemd, launchd, or Task Scheduler)

Usage

Text
kusaw service [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for service

Subcommands

kusaw service env

Set, unset, or list service environment variables

Text
kusaw service env [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for env

Example:

Text
kusaw service env list

kusaw service env list

Print the names of variables in the service env file

Text
kusaw service env list [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for list

Example:

Text
kusaw service env list

kusaw service env set

Add or replace a variable in the service env file

Text
kusaw service env set <KEY>=<VALUE> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for set

Example:

Text
kusaw service env set KEY=VALUE

kusaw service env unset

Remove a variable from the service env file

Text
kusaw service env unset <KEY> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for unset

Example:

Text
kusaw service env unset KEY

kusaw service hold

Keep a WSL distro alive while the user unit is active

Text
kusaw service hold [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for hold

Example:

Text
kusaw service hold

kusaw service install

Register kusaw up to start at sign-in

Text
kusaw service install [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--dry-runboolfalsePrint the changes without making them
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for install
--lingerboolfalseKeep the Linux user service running after sign-out
--no-windows-taskboolfalseSkip the Windows logon task (WSL)
--portint0Dashboard port (0 uses the registry ui.port)

Example:

Text
kusaw service install

kusaw service start

Start the installed service now

Text
kusaw service start [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for start

Example:

Text
kusaw service start

kusaw service status

Show whether the start-at-login service is installed and healthy

Text
kusaw service status [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for status
--jsonboolfalsePrint JSON

Example:

Text
kusaw service status

kusaw service stop

Stop the service with a drain

Text
kusaw service stop [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for stop

Example:

Text
kusaw service stop

kusaw service uninstall

Remove the start-at-login service

Text
kusaw service uninstall [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for uninstall

Example:

Text
kusaw service uninstall

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw service status

On this page