sdk settings
Reads and changes your SDK Studio settings: client shape, authentication, reliability, idempotency, output options and the rest. They apply to the next build. Every key is in the settings reference.
A change here publishes the settings straight away, the same as Publish in SDK Studio. It's guarded by a revision number, so if a teammate published in the meantime, the command fails instead of overwriting their change.
octri sdk settings [get | set <key> <value>]octri sdk settings get
Prints every setting, one line each, with the revision. --json prints the whole document.
Flags
--key <path>stringPrints one setting or one group of them, as a dotted path such as reliability or reliability.maxAttempts.
octri sdk settings set <key> <value>
Changes one setting and keeps every other as it is.
Arguments
<key>stringrequiredA dotted path, such as reliability.maxAttempts or clientStyle. Missing parts are created.
<value>stringrequiredThe new value. true, false, null and numbers are read as such, and a value starting with { or [ as JSON. Anything else is text.
Flags
--file <settings.json>pathReplaces every setting with the file's contents, instead of changing one key. Start from what octri sdk settings get --json prints.
--version <version>stringPublishes the settings as a versioned SDK release, such as 2.1.0. It must be higher than the last version you shipped, because registries refuse a version they already hold.
--changelog <text>stringRelease notes for that version.
Examples
Read the retry settings
octri sdk settings get --key reliability✔ Loading SDK settings
{
"maxAttempts": 3
}Change one setting
octri sdk settings set reliability.maxAttempts 5✔ Publishing settings rev 6 → 7
✔ Settings saved at revision 7.Related
octri sdk build: Build SDKs for the languages you choose and follow each one live.- Settings reference: Every key, its values and its default.