Skip to content

compozy session reorder

Pin a manual session order in a folder or the workspace root

626 pages in CLI Reference

On this page6

Usage

compozy session reorder <id>... [flags]

Examples3

  1. Order two sessions at the top of the workspace root

    compozy session reorder sess_b sess_a
  2. Order sessions inside a folder

    compozy session reorder sess_c sess_a --folder sfold-1234
  3. Put one pinned session above another in Pinned

    compozy session reorder sess_b sess_a --pinned

Options4

--folderstring
Folder ID (omit for the workspace root)
--help-h
help for reorder
--pinned
Order the Pinned section instead of a folder or the root
--workspacestring
Workspace ID, name, or path (defaults to the current directory)

Inherited options4

--computerstring
Target a computer by name or ID
--json
Emit JSON output
--output-ostring
Output format: human, json, jsonl, or toon (default "human")
--profilestring
Act as a profile for this command

Synopsis

Pin the listed sessions, in order, at the top of one folder (or the workspace root). Sessions already there but not listed keep their order after them. List sessions with --sort manual to see this order. With --pinned, order the Pinned section instead: the listed pinned sessions take the Pinned slots they hold now, in order, and other pins keep theirs.

Output Formats

The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.

FormatCommand result
humanInteractive terminal rendering
jsonMachine-readable JSON rendering
jsonlOne JSON record per line when supported
toonCompact agent-readable rendering

Example:

compozy session reorder <id>... -o json