mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-30 23:31:15 +00:00
pvesh man page
This commit is contained in:
parent
0125d38c77
commit
f6b62dd260
@ -24,7 +24,9 @@ CLI_MANS = \
|
|||||||
$(addsuffix .1, ${CLITOOLS}) \
|
$(addsuffix .1, ${CLITOOLS}) \
|
||||||
pveversion.1 \
|
pveversion.1 \
|
||||||
pveupgrade.1 \
|
pveupgrade.1 \
|
||||||
pveperf.1
|
pveperf.1 \
|
||||||
|
pvesh.1
|
||||||
|
|
||||||
CLI_PODS = $(addsuffix .pod, ${CLI_MANS})
|
CLI_PODS = $(addsuffix .pod, ${CLI_MANS})
|
||||||
|
|
||||||
|
|
||||||
@ -60,6 +62,10 @@ pveperf.1.pod: pveperf
|
|||||||
podselect $< > $@.tmp
|
podselect $< > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
pvesh.1.pod: pvesh
|
||||||
|
podselect $< > $@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
%.service-bash-completion:
|
%.service-bash-completion:
|
||||||
perl -I.. -T -e "use PVE::Service::$*; PVE::Service::$*->generate_bash_completions();" >$@.tmp
|
perl -I.. -T -e "use PVE::Service::$*; PVE::Service::$*->generate_bash_completions();" >$@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
46
bin/pvesh
46
bin/pvesh
@ -562,3 +562,49 @@ while (defined ($input = $term->readline("pve:/$cdir> "))) {
|
|||||||
};
|
};
|
||||||
warn $@ if $@;
|
warn $@ if $@;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__END__
|
||||||
|
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
pvesh - shell interface to the Promox VE API
|
||||||
|
|
||||||
|
=head1 SYNOPSIS
|
||||||
|
|
||||||
|
pvesh [get|set|create|delete|help] [REST API path] [--verbose]
|
||||||
|
|
||||||
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
|
pvesh provides a shell-like interface to the Proxmox VE REST API, in two different modes:
|
||||||
|
|
||||||
|
=over
|
||||||
|
|
||||||
|
=item interactive
|
||||||
|
|
||||||
|
when called without parameters, pvesh starts an interactive client, where you can navigate
|
||||||
|
in the different parts of the API
|
||||||
|
|
||||||
|
=item command line
|
||||||
|
|
||||||
|
when started with parameters pvesh will send a command to the corresponding REST url, and will
|
||||||
|
return the JSON formatted output
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
|
=head1 EXAMPLES
|
||||||
|
|
||||||
|
get the list of nodes in my cluster
|
||||||
|
|
||||||
|
pvesh get /nodes
|
||||||
|
|
||||||
|
get a list of available options for the datacenter
|
||||||
|
|
||||||
|
pvesh help cluster/options -v
|
||||||
|
|
||||||
|
set the HTMl5 NoVNC console as the default console for the datacenter
|
||||||
|
|
||||||
|
pvesh set cluster/options -console html5
|
||||||
|
|
||||||
|
=head1 SEE ALSO
|
||||||
|
|
||||||
|
qm(1), pct(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user