# geni config set (/cli/config/set)



```sh
geni config set <key> <value>
```

Writes a config value. URLs are validated on write so malformed values fail loudly here rather than on the next command.

## Synopsis [#synopsis]

```sh
geni config set apiUrl http://localhost:4111
geni config set dashboardUrl http://localhost:5177
```

| Arg       | Notes                                                                                       |
| --------- | ------------------------------------------------------------------------------------------- |
| `<key>`   | One of `apiUrl`, `dashboardUrl`. See [config overview](/cli/config) for what each controls. |
| `<value>` | New value. URL keys must be valid `http://` or `https://` URLs.                             |

## Output [#output]

```
✓ Set apiUrl = http://localhost:4111
```

If you change `apiUrl` while signed in to a different server, you'll need to log out and back in for the change to take effect:

```sh
geni logout
geni login
```
