Switches and routers have a console port. It will be used at least once in a life, because that's the port you use when you configure a brand new switch/router for a first time (or a used switch/router with no configuration at all).
This document describes how to connect it using the Cisco simulator software Packet Tracer.
If you add a switch or a router in the Logical Workspace and then click on its icon you'll see the CLI tab.
When you clic this tab, you'll see the screen of a connection via the console port. However, although it's a practical and fast way to access the console in a switch or router, it's much different than in real life.
Packet Tracer offer a method closer to reality as shown in the pictures in the link below.
They are named in the order of the steps.
First, connect the PC to the Switch using a console cable. The PC port will be the RS-232 and the switch port will be the Console port.
Next, click on the PC and access the Desktop tab. Click on the Terminal icon. A small window will appear, click OK to accept the default settings and the switch CLI will appear. Just hit ENTER in your keyboard and you will get to the user mode (Switch>).
The default settings in that small screen represent what you would set in a third-party software to connect to the switch. Windows has (or had) the HyperTerminal terminal emulator. In the HyperTerminal you would set a connection use the same settings of that small screen.