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.