Your onion and shallot plants should be spaced about 10-15cm apart. If you’re growing them in rows, leave around 30cm between these.