Create index with the `index` command

Signed-off-by: chatgris <jboyer@af83.com>