Commands: What are the commands?

Commands are a set of low level operations that can be used to manipulate data and change configuration on a server.

They are available in DocumentStore under DatabaseCommands and AsyncDatabaseCommands property.

IDatabaseCommands commands = store.DatabaseCommands;
IAsyncDatabaseCommands asyncCommands = store.AsyncDatabaseCommands;

Document commands

The following commands can be used to manipulate documents:
- Put
- Get
- GetDocuments
- MultiGet
- StartsWith
- Head
- Delete
- DeleteByIndex
- UpdateByIndex
- StreamDocs

Index commands

The following commands can be used to manipulate indexes:
- PutIndex
- GetIndex
- GetIndexes
- GetIndexNames
- GetIndexMergeSuggestions
- DeleteIndex
- ResetIndex
- IndexHasChanged
- SetIndexLock
- SetIndexPriority

Transformer commands

The following commands can be used to manipulate transformers:
- PutTransformer
- GetTransformer
- GetTransformers
- DeleteTransformer

Attachment commands

The following commands can be used to manipulate attachments:
- PutAttachment
- GetAttachment
- GetAttachments
- HeadAttachment
- GetAttachmentHeadersStartingWith
- DeleteAttachment
- UpdateAttachmentMetadata

Patch commands

The following commands can be used to patch:
- Patch

Query commands

The following commands can be used to query:
- Query
- StreamQuery

Batch commands

The following commands can be used to send commands in a batch:
- Batch

Administrative commands

The following commands can be used to perform administrative tasks on a server:
- CreateDatabase
- DeleteDatabase
- CompactDatabase
- GetStatistics
- StartBackup
- StartRestore
- StopIndexing
- StartIndexing
- GetIndexingStatus