liblab config
Overview
All configuration options in the liblab.config.json
file use camelCase
notation.
For more details on liblab.config.json
and the available configuration you can retrieve and set, check the following documentation pages:
The liblab.config.json
file serves as the primary configuration for SDK generation using LibLab. This file defines settings for SDK generation, documentation, and CI/CD pipeline integration.
While you can manually edit this file, liblab also provides the liblab config
command, which allows you to retrieve and update configuration values directly from the CLI.
Retrieve a configuration value
To get a configuration option value, run liblab config optionName
:
liblab config baseUrl
http://localhost:8000
To get a nested configuration value, use dot (.
) notation for structured access:
liblab config languageOptions.java.includeKotlinSnippets
true
Set a Configuration Value
When you provide the VALUE
argument, liblab recognizes that you want to update the existing liblab.config.json
file.
To set a value, use the following command. Strings and integers will be automatically infered:
liblab config baseUrl "https://production.server.com"
Successfully set baseUrl to https://production.server.com
To set an array value, use:
liblab config languages "javascript, python, go"