ArakunDocsDownloadarakun on GitHub

The arakun command

Read a terminal

Start a dev server or watcher in a terminal you can see with arakun run, and read or wait for its output with arakun logs.

On this page
  1. Start a command and wait for it
  2. Read the output
  3. Wait for output
  4. See the servers that run

Each environment has a dock of terminals. They are numbered, so agents and scripts can read them.

#Start a command and wait for it

sh
arakun run --port 5173 npm run dev

This opens a new terminal in the dock, runs the command and waits until the port answers.

arakun run takes these flags before the command:

--ready <text>

Wait until the output shows this text, ignoring case.

--port <n>

Wait until this port answers. With --ready too, it waits for both.

--timeout <secs>

How long to wait, with --ready or --port. The default is 60 seconds, and the maximum is 600.

It fails with the tail of the output if the command exits first, or is not up in time. Flags after the command belong to it, so vite --port 3000 keeps its own.

#Read the output

sh
arakun logs 2          # the last 200 lines of terminal 2
arakun logs -n 50 dev  # the last 50 lines of the terminal with "dev" in its title

Name a terminal by its number or by a word of its title. When that is unclear, arakun logs lists the terminals.

#Wait for output

sh
arakun logs 2 --until compiled

This waits until terminal 2 prints "compiled", ignoring case, and prints what the terminal printed. Only output after the call counts. It fails after --timeout <secs>, 60 seconds by default.

#See the servers that run

While a local server runs in one of your projects, the status bar says how many do and the memory they hold, such as 2 running · 780 MB. Click it to list them by project: the port, the command, who started it, its memory and how long it has run. Who started it is a dock terminal, an agent, or something outside Arakun whose folder is in an environment. An environment at your home folder or above it lists only what Arakun started, so desktop apps stay out of the list.

Under the pointer, a row can open the port in the browser, show its terminal or stop it. Stop ends that process and what it started, never the terminal's shell or the agent.

The Running piece (Customize › Sidebar) opens the same list from the sidebar, with the count on its icon.

Did this page help?

Tell us about a mistake on this page, or ask for help with Arakun.