gurl import

Import requests from external formats including HAR, OpenAPI, and common collection formats.

Usage

gurl import [flags]

Description

The import command converts requests from common API formats into gurl’s format. It supports HAR files, OpenAPI specifications, and several collection formats.

Flags

FlagShortDefaultDescription
--force-ffalseOverwrite existing requests with the same name
--formatnoneSpecify format explicitly (har, openapi, insomnia, postman, bruno)
--list-lfalseList available collections/requests before importing

Aliases

  • imp

Examples

Import from file

gurl import --format openapi ./api.yaml

Imports all endpoints from an OpenAPI spec.

Import with overwrite

gurl import --format har ./requests.har --force

Imports and overwrites existing requests with the same names.

List before importing

gurl import --format openapi ./api.yaml --list

Lists all endpoints in the OpenAPI file before importing.

Import HAR file

gurl import --format har ./requests.har

Imports all requests from a HAR file.

See also