Reference

quit

Disconnect from a Runtime API interactive session.

Description Jump to heading

Use the quit command to disconnect from the Runtime API when using in interactive mode.

Examples Jump to heading

The following example shows an interactive session with the Runtime API, terminated with the quit command.

  1. Connect to the Runtime API socket:

    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    nix
    sudo socat stdio tcp4-connect:127.0.0.1:9999
  2. Start an interactive session:

    nix
    prompt
    nix
    prompt
  3. Quit the session:

    nix
    quit
    nix
    quit

See also Jump to heading

Do you have any suggestions on how we can improve the content of this page?