You must enable Developer Options on your phone to accept ADB commands.
command, it starts a server on your PC that acts as a middleman between your terminal and the daemon (adbd) running on the connected Android device. Android Developers Primary Use Cases Sideloading: Installing files manually via adb install [filename.apk] sdk platform tools work