tld config
View Markdowntld config is the management interface for your global tld configuration file. Read values, change settings, validate your config , all from the terminal.
tld configSubcommands
Section titled “Subcommands”config path
Section titled “config path”Where is your global config file?
tld config pathconfig list
Section titled “config list”See everything that’s currently configured:
tld config listKEY VALUE SOURCE ENV DESCRIPTIONserver_url https://tldiagram.com file TLD_SERVER_URL tlDiagram server URLapi_key ******** file TLD_API_KEY API key for authenticationorg_id org_abc123 file TLD_ORG_ID Default organization IDserve.host 127.0.0.1 default TLD_ADDR Host for local serverserve.port 8060 file PORT Port for local serverwatch.languages go,typescript,python default Languages to watchwatch.watcher auto default Watcher backend...Each row shows the effective value, where it came from (config file, environment variable, or built-in default), and whether it’s a secret.
To see secret values unmasked:
tld config list --show-secretsBe careful with that. It’ll show your API key in plain text.
config get
Section titled “config get”Read one specific value:
tld config get serve.port# 8060
tld config get server_url# https://tldiagram.comconfig set
Section titled “config set”Change a value:
tld config set serve.port 9090# Set serve.port
tld config set watch.languages go,python,rust# Set watch.languagesThe change is written to your global config file immediately. No restart needed , the next tld command picks it up.
config validate
Section titled “config validate”Check your config for issues:
tld config validate# Global config valid.If there are problems, it lists them:
tld config validate# ⚠ 2 config issues:# - watch.embedding.provider: "openi" is not a recognized provider# - serve.port: "abc" is not a valid port numberJSON output
Section titled “JSON output”All config subcommands support --format json:
tld config list --format json[ { "key": "server_url", "value": "https://tldiagram.com", "source": "file", "env": "TLD_SERVER_URL", "description": "tlDiagram server URL", "secret": false }, ...]What config keys are available?
Section titled “What config keys are available?”See the full configuration reference for every available key, what it does, and its defaults.
Quick categories:
server_url,api_key,org_id, cloud version connectionserve.host,serve.port, local server settingsserve.data_dir, where SQLite and logs livewatch.*, language scanning, thresholds, embeddings, visibility
When to use this vs editing the file directly
Section titled “When to use this vs editing the file directly”tld config is convenient and validates input. It’s the recommended way to change settings.
But for bulk edits or when you’re setting up a new machine from a template, editing ~/.config/tldiagram/tld.yaml directly is fine too. Just make sure the YAML is valid , run tld config validate after.