Ensures one or more offline-logs collections has indexes

Description

Checks whether a collection has indexes and gives the user an option to add them. Adding an index may improve performance of some of the read operations.

Command

codefresh offline-logs ensure-index

Options

Option Alias Type Default Description
--uri string Mongodb URI. If not provided, will be parsed from environment variable RUNTIME_MONGO_URI.
--db string Database name. If not provided, will be parsed from environment variable RUNTIME_MONGO_DB.
--help Print help information

Examples

undefined

codefresh offline-logs ensure-index --uri "mongodb://192.168.99.100:27017" --db logs