Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Native Methods

cd()

cd(path)
Parameter
Type
Description

path

string

A path on the file system local to the mongo shell context.

cd() changes the directory context of the mongo shell and has no effect on the MongoDB server.

Back

cat()

On this page