A list of indices in MongoDB?
And if you want to get list of all indexes in your database:
use "yourdbname"
db.system.indexes.find()
From the shell:
db.test.getIndexes()
For shell help you should try:
help;
db.help();
db.test.help();
If you want to list all indexes across collections:
db.getCollectionNames().forEach(function(collection) {
indexes = db.getCollection(collection).getIndexes();
print("Indexes for " + collection + ":");
printjson(indexes);
});