We’re overhauling Dgraph’s docs to make them clearer and more approachable. If
you notice any issues during this transition or have suggestions, please
let us know.
bash or
zsh that lets you type commands in a fast and easy way. This functionality
automatically fills in partially typed commands when the user press the
tab key.
Completion script
The command-line interpreter requires a completion script to define which completion suggestions can be displayed for a given executable. Using thedgraph completion command you can generate a file that can be added
to your shell configuration. Once added, you will be able to auto-complete any
dgraph command.
Dgraph command completion currently supports
bash and zsh shells.Bash shell
To generate adgraph-completion.sh configuration file for your bash shell,
run the completion command as follows:
#, or you can easily remove them with the following command:
sudo to run it):
.bashrc file with any text editor (you might need sudo to apply
changes). For example:
dgraph-completion.sh using the following syntax
and save:
bashrc settings with the following command:
dgraph and press tab to get
auto-completion and suggestions: