Skip to content

CLI: Import & Export

The nouto import and nouto export commands convert collections between formats from the command line.

Terminal window
nouto import <file> [options]
Option Description Default
--from <format> Source format (see below) Auto-detect
-o, --output <file> Output file <name>.nouto.json
Format --from value Auto-detected by
Postman postman info.schema or info._postman_id in JSON
Insomnia insomnia _type: "export" in JSON
Hoppscotch hoppscotch Array with v and name fields
Thunder Client thunder-client Array with containerId field
HAR har log.version and log.entries in JSON
OpenAPI openapi openapi or swagger field, or .yaml/.yml extension
Bruno bruno .bru file extension
cURL curl Content starts with curl
Terminal window
# Auto-detect format
nouto import postman-collection.json
# Explicit format
nouto import spec.yaml --from openapi
# Custom output path
nouto import collection.json --output my-api.nouto.json
Terminal window
nouto export <collection-file> [options]
Option Description Default
--to <format> Target format: nouto, har nouto
-o, --output <file> Output file <name>.<ext>
Terminal window
# Export as Nouto native
nouto export my-api.nouto.json
# Export as HAR
nouto export my-api.nouto.json --to har --output traffic.har
Code Meaning
0 Success
2 Input file not found
4 Invalid collection format (export)
6 Import format auto-detection failed
7 Other error

Convert a Postman collection for use with nouto run:

Terminal window
nouto import postman-collection.json --output my-api.nouto.json
nouto run my-api.nouto.json --reporter junit --output results.xml