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

Start a command and wait for it

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:
Wait until the output shows this text, in any case.
Wait until this port answers. With --ready too, it waits for both.
How long to wait, with --ready or --port. The default is 60 seconds, the most 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

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

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