update index by terminal