Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.96 KB

File metadata and controls

46 lines (38 loc) · 1.96 KB

microcks import – Import API Artifacts into Microcks

Uploads one or more API spec files (e.g., OpenAPI, AsyncAPI, Postman) to the Microcks server and optionally watches them for changes.

Usage

microcks import <specFile1[:main]>,<specFile2[:main]> [flags]

Examples

# Import a single artifact (marked as main)
microcks import ./api.yaml

# Specify mainArtifact flag for each file
microcks import ./api.yaml:false,./schema.json:true

# Import and watch file for changes
microcks import ./api.yaml --watch

# Import specification to microcks without first running `microcks login`
microcks import ./api.yaml \
    --microcksURL <microcks-url> \ 
    --keycloakClientId <client-id> \
    --keycloakClientSecret <client-secret> 

# Import specification to microcks running without authentication (ie. local uber instance typically)
microcks import ./api.yaml --microcksURL <microcks-url>

Options

Flag Description
-h, --help help for import
--watch Watch the file(s) and auto-reimport them on changes

Options Inherited from Parent Commands

Flag Description
--config Path to Microcks config file
--microcks-context Name of the Microcks context to use
--verbose Produce dumps of HTTP exchanges
--insecure-tls Allow insecure HTTPS connections
--caCerts Comma-separated paths of CA cert files
--keycloakClientId Keycloak Realm Service Account ClientId
--keycloakClientSecret Keycloak Realm Service Account ClientSecret
--microcksURL Microcks API URL