Back to Keystone Classic

Get

docs/api/Methods/get.md

4.2.1543 B
Original Source

Get

keystone.get(key:String)

Retrieve a property from Keystone's options. For information about Keystone's options, see configuration documentation.

This can be used to retrieve information about Keystone's running once it has started.

Example:

javascript
keystone.get('env')

NOTE: keystone.get is an alias for keystone.set. As such, passing in a second argument will cause it to set the value of the Keystone option to the second argument before returning the value.