Dgraph supports command-line completion, a common feature provided by shells like bash or zsh that helps you to type commands in a fast and easy way
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.
dgraph 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.
bash
and zsh
shells.dgraph-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: