(You will still need to 'discover' enemies)
Note: For the following commands, replace # with a number. Open the console in-game using the ~ button (the usual button for console). If using Steam, rightclick the game in your Library, select Properties and add it under 'Set launch options'.
To activate the console, you must first add the following as a command line parameter to XCOM 2: -allowconsole Rightclick the XCOM 2 shortcut, select properties and add it at the end of the 'Target'-field so that it looks something like this: 'C:\Games\XCOM 2\Binaries\Win64\XCom2.exe' -allowconsole.