Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

CLI for beginners: v-search-command

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
fedekrum
Posts: 49
Joined: Mon May 12, 2014 7:45 pm

Os: Ubuntu 15x
Web: apache + nginx
CLI for beginners: v-search-command
  • Quote

Post by fedekrum » Sat Sep 28, 2019 8:47 am

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 !!
Last edited by fedekrum on Tue Oct 01, 2019 8:37 pm, edited 1 time in total.
Top

Wibols
Posts: 21
Joined: Tue Jun 25, 2019 7:42 pm

Os: CentOS 6x
Web: apache + nginx
Re: CLI for beginners: v-search-command
  • Quote

Post by Wibols » Sat Sep 28, 2019 9:38 am

Thanks for to share.
Top

fedekrum
Posts: 49
Joined: Mon May 12, 2014 7:45 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: CLI for beginners: v-search-command
  • Quote

Post by fedekrum » Fri Oct 04, 2019 6:29 am

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
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password