update command to create index together with types