Switch between, list, or delete configured Microcks CLI contexts.
microcks context [CONTEXT] [flags]# List all available contexts
microcks context/ctx
# Switch to this context
microcks context/ctx http://localhost:8080
# Delete the context
microcks context/ctx http://localhost:8080 --delete/-d
# List contexts for editor and automation integrations
microcks context --output jsonJSON mode writes an array of {name, server, current} objects. When no local
config exists yet, it writes []; this is a valid disconnected state for
editor and automation consumers.
| Flag | Description |
|---|---|
-d, --delete |
Delete the specified context |
-h, --help |
help for context |
--output |
Output format: text or json |
| 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 |