Skip to content
gurl import

gurl import

Import requests from OpenAPI, Insomnia, Bruno, Postman, HAR or a native gurl export. The format is detected from the file unless you force it.

Synopsis

gurl import <path> [flags]
gurl import --list

Supported inputs (gurl import --list):

ExtensionFormat
.yaml, .ymlOpenAPI/Swagger 3.x
.jsonInsomnia, Postman, OpenAPI, HAR
.bruBruno
.harHAR (HTTP Archive)
.gurlNative gurl request or collection export

Flags

FlagShortDefaultDescription
--force-ffalseOverwrite existing requests with the same name
--format--fmtauto-detectedForce a specific format
--list-lfalseList all supported formats
--passphrasenonePassphrase for decrypting native collection exports (or set GURL_IMPORT_PASSPHRASE)

Aliases

  • imp

Examples

Import an OpenAPI spec

gurl import ./api.yaml

Re-import a Postman collection, overwriting existing requests

gurl import ./my-collection.json --force

Import a teammate’s collection export

gurl import ./payments.gurl --passphrase "$TEAM_SECRET"

Related commands