Skip to content

Command line ​

text
yuke [OPTIONS]
yuke <COMMAND>

A flag and a command do not mix. Use a command alone. yuke --help and yuke COMMAND --help give the same lists.

Run yuke ​

CommandWhat it does
yukeStart the TUI. See Use the TUI.
yuke -cStart the TUI with the newest session of the current folder.
yuke -r IDStart the TUI with the session ID, in any folder.
yuke -p PROMPTRun one task, print the last answer, and exit. See One-shot tasks.
yuke --rpcServe the yuke protocol on stdin and stdout. See Embed with RPC.
yuke --versionPrint the version. -V is the short form.
yuke --helpPrint the help. -h is the short form.

Options ​

OptionUse
-p, --print PROMPTRun one task with PROMPT. PROMPT is not empty.
--jsonWith -p: print one JSON object with sessionId, end, and text, in place of the answer.
--model PROVIDER/MODELWith -p: select the model, such as anthropic/claude-sonnet-4-6. A new session needs it. It needs --reasoning too.
--reasoning LEVELWith -p: select the reasoning level: default, off, or an effort such as low or high. A new session needs it.
-r, --resume IDResume the session ID, in any folder. It works with the TUI and with -p. It does not mix with -c.
-c, --continueContinue the session of the current folder with the newest event. It works with the TUI and with -p.
--rpcServe the protocol on stdin and stdout. It does not mix with -p, --json, --model, --reasoning, -r, or -c.
--listen unix://PATHWith --rpc: serve the clients of a Unix socket, one at a time. The sessions outlive each client.
--connect unix://PATHWith --rpc: join stdin and stdout to the server of a Unix socket. It does not mix with --listen.

For the models and the credentials, see Providers. For the exit status of -p, see One-shot tasks. For the socket and the protocol, see Embed with RPC.

Connect a provider ​

CommandWhat it does
yuke login PROVIDERLog in with a device code, and save the login in auth.json. Only a provider with an account login has this flow: openai-codex and xai-grok. For an API key, run /login in the TUI, or set the variable of the provider.
yuke logout PROVIDERRemove the login or the API key that /login stored for PROVIDER. A key in an environment variable stays.

See Providers.

Test a plugin ​

CommandWhat it does
yuke test [PATHS]...Run the tests of yuke:test in the *.test.ts files at PATHS. A path is a file or a folder. Without PATHS, yuke searches the current folder. The command fails when it finds no test file, and when a test fails. Each test runs in its own app with a fake model.

See Test and debug.

Manage plugins ​

CommandWhat it does
yuke plugin listShow each plugin of config.json and its state. It uses no network.
yuke plugin sync [--locked]Install the commits of plugins.lock, and lock each new Git plugin. With --locked, fail when plugins.lock does not match config.json, and never write it.
yuke plugin update [--all] [--yes] [NAME]...Move Git plugins to the newest commit of their ref. It shows the log and asks before it writes plugins.lock. Give --all or at least one NAME. --all selects every Git plugin, --yes skips the question, and NAME selects a plugin.
yuke plugin add URL [NAME]... [--ref REF]Add the plugins of a Git repository to config.json, install them, and lock them. A repository with one plugin needs no NAME. --ref selects the branch, tag, or commit to follow.
yuke plugin remove NAMERemove a plugin from config.json and plugins.lock. Its files stay on disk.

NAME is the name of the plugin.json of the plugin. See Plugins.

After a change, run /reload in the open sessions.

Update yuke ​

CommandWhat it does
yuke updateInstall the newest release of the current channel, stable or nightly.
yuke update --channel CHANNELInstall the newest release of CHANNEL.
yuke update VERSIONInstall the release VERSION, such as 0.1.0 or v0.1.0.

yuke upgrade is the same command. VERSION can be older than the current release. VERSION and --channel do not mix.

The command downloads and runs https://yuke.sh/install.sh. The installer keeps your configuration.

The command works only for the yuke at ~/.local/bin/yuke, which the installer writes. A build from source has no channel. Give it --channel or VERSION.

An older release may not read the sessions of a newer one, so yuke warns before it installs an older release. After an update, restart the open sessions. They use the old program until they exit.