# urbestack-setting-set

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-setting-set --key KEY --value VALUE [--json]
urbestack-setting-set --key KEY --value-stdin [--json]    (the value on standard input)
```

## Description

Sets an UrbeStack setting. Specify --key and exactly one of --value or --value-stdin. The input is read as a string by default. Use --json to pass a JSON value such as a boolean, number, or array.

--value-stdin reads the value from standard input and removes one trailing LF or CRLF. Use it for sensitive values or values that exceed the kernel's argument length limit. Other accounts can see command-line arguments while the command runs.

UrbeStack rejects unknown keys and suggests a known key when it finds a close match. It also rejects changes to secrets it generates for its own use.

On a DNS distribution network with multiple nodes, change dns.nameservers through the network. A new panel.timezone value must be a time zone listed by the server. You can turn off telemetry.share only if your license allows it. When you enable security.require_second_factor_admins, administrators' existing sessions stay active and the requirement applies at their next sign-in.

php.default_version applies to domains without a PHP version of their own. It must name an installed, visible version. Setting php.versions.legacy_enabled updates php.versions.hidden to hide the legacy versions omitted from the supplied list.

Set jobs.keep_days to 0 to keep jobs indefinitely. A finite retention period must be at least jobs.show_days. If the other setting is absent, the comparison uses 365 days for jobs.keep_days or 30 days for jobs.show_days.

Changes to firewall.enabled apply or remove UrbeStack's firewall rules immediately. A change to ssh.port takes effect immediately and supports rollback. UrbeStack checks for conflicts with the web interface port and rejects changes to an existing ssh.port or panel.port while a firewall rollback is armed.

## Same in the API

- [PUT /php/versions](https://urbestack.com/docs/api/put-php-versions.md): Set the configured PHP versions, hidden versions, or default version
- [POST /php/versions/{version}/install](https://urbestack.com/docs/api/post-php-versions-version-install.md): Queue installation of a PHP version
- [PUT /settings/{key}](https://urbestack.com/docs/api/put-settings-key.md): Set a setting by key

## Command family: setting

- [urbestack-setting-get](https://urbestack.com/docs/commands/urbestack-setting-get.md): Shows UrbeStack settings.
