> This page location: /docs.md > /docs/development.md > /docs/manual/reference/command.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# setParameter (database command)

## Definition

[`setParameter`](https://www.mongodb.com/docs/manual/reference/command/setparameter.md#mongodb-dbcommand-dbcmd.setParameter) is an administrative command for modifying options normally set on the command line. You must issue the [`setParameter`](https://www.mongodb.com/docs/manual/reference/command/setparameter.md#mongodb-dbcommand-dbcmd.setParameter) command against the [admin database.](https://www.mongodb.com/docs/manual/reference/glossary.md#std-term-admin-database)

## Compatibility

This command is available in deployments hosted in the following environments:

- [MongoDB Enterprise](https://www.mongodb.com/docs/manual/administration/install-enterprise.md#std-label-install-mdb-enterprise): The subscription-based, self-managed version of MongoDB

- [MongoDB Community](https://www.mongodb.com/docs/manual/administration/install-community.md#std-label-install-mdb-community-edition): The source-available, free-to-use, and self-managed version of MongoDB

**Important:**

This command is not supported in MongoDB Atlas clusters. For information on Atlas support for all commands, see [Unsupported Commands.](https://www.mongodb.com/docs/atlas/unsupported-commands/)

## Syntax

```javascript
db.adminCommand(
   {
     setParameter: 1,
     <parameter>: <value>
   }
)
```

For the available parameters, including examples, see [MongoDB Server Parameters for a Self-Managed Deployment.](https://www.mongodb.com/docs/manual/reference/parameters.md)

## Behavior

### Persistence

Commands issued by the admin command [`setParameter`](https://www.mongodb.com/docs/manual/reference/command/setparameter.md#mongodb-dbcommand-dbcmd.setParameter) do not survive server restarts. For a persistent option use the [`--setParameter`](https://www.mongodb.com/docs/manual/reference/program/mongod.md#std-option-mongod.--setParameter) command line option or the [`setParameter`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-setParameter) configuration file setting.

### Stable API

When using [Stable API](https://www.mongodb.com/docs/manual/reference/stable-api.md#std-label-stable-api) V1 with [apiStrict](https://www.mongodb.com/docs/manual/reference/stable-api.md#std-label-api-strict-desc) set to `true`, you cannot use [`setParameter`](https://www.mongodb.com/docs/manual/reference/command/setparameter.md#mongodb-dbcommand-dbcmd.setParameter) to modify server parameters.
