I thought about the start and finish option but it seems like I would have to create individual rules for each port.
Look for "switchport port-security"
Start at Interface GigabitEthernet1/0/1
end at Interface GigabitEthernet1/0/2
then create a new rule for port 2, and another for port 3, etc..