]> git.proxmox.com Git - pmg-docs.git/blob - pmgsh.adoc
gitignore: add package build outputs
[pmg-docs.git] / pmgsh.adoc
1 [[chapter_pmgsh]]
2 ifdef::manvolnum[]
3 pmgsh(1)
4 ========
5 :pmg-toplevel:
6
7 NAME
8 ----
9
10 pmgsh - Proxmox Mail Gateway API Shell
11
12
13 SYNOPSIS
14 --------
15
16 include::pmgsh.1-synopsis.adoc[]
17
18
19 DESCRIPTION
20 -----------
21 endif::manvolnum[]
22 ifndef::manvolnum[]
23 pmgsh - API Shell
24 =================
25 :pmg-toplevel:
26 endif::manvolnum[]
27
28 The `pmgsh` tool can be used to access the {pmg} API via the command line.
29
30 .Examples
31
32 List entries:
33
34 ----
35 # pmgsh ls /
36 ----
37
38 Call the 'GET' method on a specific API path:
39
40 ----
41 # pmgsh get /version
42 ----
43
44 View current mail configuration:
45
46 ----
47 # pmgsh get /config/mail
48 ----
49
50 Get help for a specific path:
51
52 ----
53 # pmgsh help /config/mail -v
54 ----
55
56 Disable option 'spf' in '/config/mail'
57
58 ----
59 # pmgsh set /config/mail -spf 0
60 ----
61
62 Delete 'spf' setting from '/config/mail'
63
64 ----
65 # pmgsh set /config/mail -delete spf
66 ----
67
68
69 ifdef::manvolnum[]
70 include::pmg-copyright.adoc[]
71 endif::manvolnum[]
72