Page 1 of 1

CLI for beginners: v-search-command

Posted: Sat Sep 28, 2019 8:47 am
by fedekrum
Hi,
I have made something for me long ago that I think it may be useful to other people and I wanted to share.
Most of the people use vesta's web interface, but there is a time you have to start dealing with the CLI.
Even though the commands are very self-explanatory and very well structured, sometimes I have to deal with my memory.
So I made a command that will show me all the commands containing the words after it.

For example:

Code: Select all

v-search-command dkim
will get me this list:

Code: Select all

v-add-mail-domain-dkim
v-delete-mail-domain-dkim
v-list-mail-domain-dkim
v-list-mail-domain-dkim-dns
or if I do

Code: Select all

v-search-command dkim list
it will bring:

Code: Select all

v-list-mail-domain-dkim
v-list-mail-domain-dkim-dns

Code: Select all

wget https://raw.githubusercontent.com/FastDigitalOceanDroplets/VestaCP/master/files/v-search-command -O $VESTA/bin/v-search-command
chmod +x $VESTA/bin/v-search-command
Code is here if you want to check first.
https://raw.githubusercontent.com/FastD ... ch-command

I am not an expert in bash, so if there is something I may correct, please tell me !!
I hope this helps someone out there as it did with me !!

Re: CLI for beginners: v-search-command

Posted: Sat Sep 28, 2019 9:38 am
by Wibols
Thanks for to share.

Re: CLI for beginners: v-search-command

Posted: Fri Oct 04, 2019 6:29 am
by fedekrum
Wibols wrote:
Sat Sep 28, 2019 9:38 am
Thanks for to share.
Ooooo !!! this was fast !!
The command now is part of Hestia !!
https://github.com/hestiacp/hestiacp/bl ... ch-command