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 --listSupported inputs (gurl import --list):
| Extension | Format |
|---|---|
.yaml, .yml | OpenAPI/Swagger 3.x |
.json | Insomnia, Postman, OpenAPI, HAR |
.bru | Bruno |
.har | HAR (HTTP Archive) |
.gurl | Native gurl request or collection export |
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--force | -f | false | Overwrite existing requests with the same name |
--format | --fmt | auto-detected | Force a specific format |
--list | -l | false | List all supported formats |
--passphrase | none | Passphrase for decrypting native collection exports (or set GURL_IMPORT_PASSPHRASE) |
Aliases
imp
Examples
Import an OpenAPI spec
gurl import ./api.yamlRe-import a Postman collection, overwriting existing requests
gurl import ./my-collection.json --forceImport a teammate’s collection export
gurl import ./payments.gurl --passphrase "$TEAM_SECRET"Related commands
gurl export- Export requestsgurl collection-collection importfor collection directories and.envfilesgurl detect- Parse a single curl command