Minecraft wiki entry for whitelist, associated text: whitelist add <targets> (Java Edition)
allowlist add <name: string> (Bedrock Edition)
Adds the player profile(s) to the whitelist. The player does not need to be online.
whitelist list (Java Edition)
allowlist list (Bedrock Edition)
Displays all player profiles in the whitelist.
whitelist off(Java Edition)
allowlist off (Bedrock Edition)
Disables the server's use of a whitelist.
whitelist on(Java Edition)
allowlist on (Bedrock Edition)
Enables the server's use of a whitelist.
whitelist reload(Java Edition)
allowlist reload (Bedrock Edition)
Reloads the list of player profiles in whitelist.json from disk (used when whitelist.json has been modified outside of Minecraft).
whitelist remove <targets> (Java Edition)
allowlist remove <name: string> (Bedrock Edition)
Removes the player profile(s) from the whitelist. The player does not need to be online.