>_ RESTERM
v1.18.1
cli/collection.md

docs CLI

resterm collection

Export, import, pack and unpack request bundles.

Use the collection commands to bundle a workspace's request files and inputs, then import them into another workspace.

Command What it does
resterm collection export --workspace <dir> --out <dir> Export a Git-friendly bundle directory.
resterm collection import --in <dir> --workspace <dir> Import a bundle into another workspace.
resterm collection pack --in <dir> --out <file.zip> Pack a bundle directory into a zip archive.
resterm collection unpack --in <file.zip> --out <dir> Unpack and validate a bundle archive.

export, pack, and unpack stop when the output path already exists. Pass --force to replace it. export and unpack replace only a directory that holds a bundle, and pack replaces only a file. import takes --force to replace existing files and --dry-run to preview the changes.

These commands exit 0 on success, 2 for a missing or unknown flag, extra arguments, or an unknown subcommand, 130 when Ctrl+C or SIGTERM stops them, and 1 for any other error.

See Collection sharing for the bundle layout, environment files, and safety checks.

Search

↑↓ moveEnter openEsc close

Help

These keys work like the ones in the TUI.

/
Search the docs (also Ctrl K)
j k
Scroll down and up
g g G
Jump to the top or the bottom
[ ]
Previous and next docs page
g d
Docs index
g h
Home page
t
Switch between dark and light
?
Show this help
Esc
Close a dialog