Skip to content
gurl export

gurl export

Write one request, one collection or every request to a file (or stdout) in gurl’s native format.

Synopsis

gurl export (--name <request> | --collection <name> | --all) [--output <file>] [--passphrase <pass>]

A collection export includes the collection’s variables and request membership. Collection secrets are encrypted with --passphrase and can be imported with gurl import or gurl collection import.

Flags

FlagShortDefaultDescription
--name-nnoneExport one request by name
--collection-cnoneExport an entire collection
--all-afalseExport all requests
--output-ostdoutOutput file
--format--fmtgurlExport format (only gurl is supported)
--passphrasenonePassphrase for encrypting collection secrets

Aliases

  • exp

Examples

Export one request to stdout

gurl export --name get-user

Share a collection with its secrets

gurl export --collection payments-api --passphrase "$TEAM_SECRET" --output payments-api.gurl

Back up everything

gurl export --all --output backup.gurl

Related commands