This took me a while to figure out.
First, I learned I needed (re Mongo shell (mongosh) is missing. I built and installed databases/mongosh.
Then I ran this command:
[13:00 unifi01 dvl ~] % mongosh --port 27117 Current Mongosh Log ID: 686138ea47e9a86d2a5e3cea Connecting to: mongodb://127.0.0.1:27117/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.8 Using MongoDB: 7.0.21 Using Mongosh: 2.3.8 For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/ To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy). You can opt-out by running the disableTelemetry() command. ------ The server generated these startup warnings when booting 2025-06-27T13:35:11.733+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted ------ test>
That got me into the shell.
This is the command I wanted:
test> db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } ) { featureCompatibilityVersion: { version: '6.0' }, ok: 1 } test>
That tells me: yes, the feature compatibility version is set.
Next, I need to learn what I should do when I turn this off for net-mgmt/unifi9, which I installed yesterday, after upgrading from net-mgmt/unifi8. (Thanks otis)