SOLWYN
Commands

config

Read and write the local CLI configuration file — get, set, and list

config reads and writes the CLI's local settings file. All three subcommands — get, set, and list — are entirely local: no network, no authentication. They operate only on the allowlisted, non-secret keys.

config is the one command group that emits plain text, not the schema-bearing JSON envelope. Its subcommands ignore --format and --jsonconfig get prints a bare value, config list prints key=value lines. Parse them as plain text, not JSON.

The allowlisted keys are:

KeyPurpose
api_urlSolwyn Cloud API base URL.
default_projectProject ID used when --project and SOLWYN_PROJECT_ID are unset.
formatDefault output format: table or json.

Anything else is rejected as a usage error. For the file's location, precedence against flags and environment variables, and each field in detail, see Configuration.

Credentials are not configuration. Your project key and JWT live in the OS keychain, managed by login, logout, and keys — never in the config file.

config get

Print one configuration value. An unset key prints an empty line.

Terminal
$ solwyn config get default_project
proj_abc12345
OptionTypeDefaultPurpose
keyargumentrequiredConfiguration key to read.
Contract
Authlocal (none)
Exit codes0 success · 2 usage
JSON schemanone (plain text value)

config set

Validate and persist one value. The write is atomic, and a confirmation is printed to stderr.

Terminal
$ solwyn config set default_project proj_abc12345
Set default_project.
OptionTypeDefaultPurpose
keyargumentrequiredConfiguration key to update.
valueargumentrequiredNew value for the key.
Contract
Authlocal (none)
Exit codes0 success · 2 usage
JSON schemanone (confirmation on stderr)

An invalid key or value exits 2 without changing the file.

config list

Print every allowlisted key and value in deterministic order, one key=value per line. Unset keys print an empty value.

Terminal
$ solwyn config list
api_url=https://api.solwyn.ai
default_project=proj_abc12345
format=table
Contract
Authlocal (none)
Exit codes0 success · 2 usage
JSON schemanone (plain text key/value list)
  • Configuration — file location, format, and resolution order
  • login — where credentials are stored (not here)

On this page