ToolsCommandsCommands for the database, settings and translations
jadpo config
On this page
Check and set local settings.
Settings are what config.jadpo declares: values a deployment provides, each read from the environment variable named after it in capitals. check lists every setting as set, default, missing or invalid against this machine's values, the process's environment over .env.local, and shows each problem with the command that fixes it; it never prints a value. set asks for one setting's value at a prompt, hidden when it is secret, checks it against the setting's type and stores it in .env.local, which it keeps out of git. A value is never an argument, so it cannot reach a shell history, a log or a chat. move makes a constant a setting: a field of its name and type in config { } with its value as default:, the constant deleted and every read rewritten to config.<name>; it refuses, changing nothing, a type a setting can't hold, a name a setting has, and a read in a query, an update by id, a backfill or another constant. set <key> --generate stores a new key, 32 random bytes, in .env.local and prints nothing; generate <key> writes a new key into a pipe and refuses a terminal. rotation counts the sealed rows still under FIELD_ENCRYPTION_KEY_PREVIOUS, so you know when it can go.
jadpo config <action> [field]Arguments
action: What to dofield(optional): The setting to store a value for, or the constant to move
Flags
--generate: Withset, make a key, printing nothing--url <url>: Withrotation, the database to read
On every command
--json: Print data for tools instead of text--full: Show everything a report shortens--help: Show every flag, with examples--color <when>: Choose when to use colour
jadpo config --json writes one JSON document to standard output instead of text, with the same exit code. The document has schemaVersion, command ("config"), ok, data (what the command produced, null when it failed) and diagnostics (each error with its rule, reason, next and help). A command that needs a terminal refuses --json and names the flags that do the same job.
Examples
# See which settings still need a valuejadpo config check# Make the key encrypted fields are sealed with, seen by no onejadpo config set field_encryption_key --generate# Send a new key straight to a secret managerjadpo config generate field_encryption_key | wrangler secret put FIELD_ENCRYPTION_KEY# See when the previous field key can be removedjadpo config rotation# Store a secret without typing it anywhere it is keptjadpo config set session_signing_key# List the settings as data for toolsjadpo config check --json# Make a constant a value each deployment can setjadpo config move limits.max_retries
Errors
cli.config_arguments: Ajadpo configcommand names no action, an action it doesn't have, or a settingconfig.jadpodoesn't declareconfiguration.move_type_unsupported: A constantjadpo config movewas asked to make a setting has a type one environment variable can't hold, such as a list or an objectconfiguration.move_name_taken: A constantjadpo config movewas asked to make a setting has the name of a settingconfig { }already declaresconfiguration.move_read_unsupported: A constantjadpo config movewas asked to make a setting is read where a setting can't be: in a query, an update byid, a backfill or another constant's valuetoolchain.artifact_write_failed: A file Jadpo writes for you, such as a record, couldn't be written, usually because it or its folder is read-onlyconfiguration.value_missing: A settingconfig.jadpodeclares without adefault:has no value on this machine, in the environment or.env.localconfiguration.value_invalid: A setting's value on this machine, from the environment or.env.local, doesn't fit the typeconfig.jadpogives itcli.config_tty_required: You ranjadpo config setwhere there is no terminal to type the value at, such as from a coding agent or a scriptcli.config_prompt_failed: Nothing was typed at the prompt ofjadpo config set, or the terminal couldn't hide what you type thereconfiguration.local_read_failed: The.env.localfile is there, but it couldn't be read: it is a folder, or you aren't allowed to read itconfiguration.local_invalid_encoding: The.env.localfile holds bytes that aren't UTF-8 textconfiguration.local_syntax: A line of.env.localisn't blank, a#comment orNAME=value, or it sets a variable a line above it already setsconfiguration.local_unsafe_target: The.env.localfile thatjadpo config setwould save a value in is a link, not an ordinary fileconfiguration.local_changed: Something else saved.env.localwhilejadpo config setwas saving a value in itconfiguration.local_write_failed: Saving a value in.env.localfailed, usually because the project's folder can't be written
Markdown for agents: /docs/jadpo-config.md.Built from Jadpo main at aee2e8f.