2020-04-19 13:15:20 +02:00
'\" t
2020-04-29 19:18:24 +02:00
. \" Title: xmppc
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
2020-05-16 08:45:05 +02:00
. \" Date: 05/16/2020
2020-04-29 19:18:24 +02:00
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
2020-04-19 13:15:20 +02:00
. \"
2020-05-16 08:45:05 +02:00
.TH "XMPPC" "1" "05/16/2020" "\ \&" "\ \&"
2020-04-29 19:18:24 +02:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
xmppc \- XMPP Command line Tool
.SH "SYNOPSIS"
.sp
\fI xmppc\fR [\fI OPTIONS\fR ] \- m \fI MODE\fR \fI COMMAND\fR [<args>\& ...]
2020-05-16 08:45:05 +02:00
.sp
\fI xmppc\fR [\- a \fI ACCOUNT\fR ] [\- j \fI JID\fR ] [\- p \fI PASSWORD\fR ] \- m \fI MODE\fR \fI COMMAND\fR [<args>\& ...]
2020-04-29 19:18:24 +02:00
.SH "DESCRIPTION"
.sp
2020-05-16 08:45:05 +02:00
xmppc is a XMPP command line tool\& . You need an XMPP Account to use this tool\& . The account information can be defined via command line argument \- j \fI JID\fR \& . If no password is provided via \- p \fI PASSWORD\fR xmppc will ask the user to enter the password\& . Another option is to define 1 or more accounts within a configuration file\& . The option \- a \fI ACCOUNT\fR can be used to select the account\& .
.sp
The argument \- m \fI MODE\fR defines the xmppc \fI MODE\fR which should be used (roster, message, pgp, omemo, openpgp, monitor, bookmark, mam, discovery)\& . The \fI COMMAND\fR and the args required by the \fI COMMAND\fR depends on the chosen \fI MODE\fR \& .
2020-04-29 19:18:24 +02:00
.SH "OPTIONS"
.PP
\fB \- a, \- \- attribute\fR \fI ACCOUNT\fR
.RS 4
\fI ACCOUNT\fR
2020-05-16 08:45:05 +02:00
is a name of a xmpp account defined within the configuration file\& .
2020-04-29 19:18:24 +02:00
.RE
.PP
\fB \- j, \- \- jid\fR \fI JID\fR
.RS 4
2020-05-16 08:45:05 +02:00
\fI JID\fR
of the XMPP Account\& .
.RE
.PP
\fB \- p, \- \- pwd\fR \fI PWD\fR
.RS 4
Password of the XMPP Account\& .
2020-04-29 19:18:24 +02:00
.RE
.PP
2020-05-16 08:45:05 +02:00
\fB \- v\fR \fI VERBOSE\fR , Verbose flags\& . \- v[v[v[v]]]
2020-04-29 19:18:24 +02:00
.RS 4
2020-05-16 08:45:05 +02:00
\- v is WARN \- vv is INFO \- \- vvv is DEBUG \- vvvv is TRACE
2020-04-29 19:18:24 +02:00
.RE
.PP
\fB \- \- help\fR
.RS 4
Print program version number and help
.RE
.SH "MODES AND COMMANDS"
.sp
xmppc modes\& .
.PP
2020-05-16 08:45:05 +02:00
\fB \- m roster\fR
2020-04-29 19:18:24 +02:00
.RS 4
2020-05-16 08:45:05 +02:00
The Roster mode can be used to provided information of the xmpp account\(cq s roster\& . The roster is the XMPP list of contacts\& .
2020-04-29 19:18:24 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB list\fR
\- List all contacts
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB export\fR
\- Exports all contacts
.RE
.RE
.PP
\fB \- m message\fR
.RS 4
2020-05-16 08:45:05 +02:00
The message mode can be used to send unencrypted messages to another xmpp account\& .
2020-04-29 19:18:24 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB chat <jid> <message>\fR
\- Sending unencrypted message to jid
.RE
.RE
.PP
\fB \- m pgp\fR
.RS 4
PGP Mode (XEP\- 0027)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB chat <jid> <message>\fR
\- Sending pgp encrypted message to jid
.RE
.RE
.PP
\fB \- m omemo\fR
.RS 4
OMEMO Mode (XEP\- 0384)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB list\fR
\- List the device IDs and fingerprints
.RE
.RE
.PP
\fB \- m openpgp\fR
.RS 4
openpgp mode (XEP\- 0373)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB signcrypt <jid> <message>\fR
\- Sending pgp signed and encrypted message to jid
.RE
.RE
.PP
\fB \- m monitor\fR
.RS 4
Monitot mode
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB stanza\fR
\- Stanza Monitor
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB monitor\fR
\- microblog Monitor microblog (XEP\- 0277)
.RE
.RE
.PP
\fB \- m bookmark\fR
.RS 4
Bookmark mode (XEP\- 0048)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB list\fR
\- List bookmarks
.RE
.RE
.PP
\fB \- m mam\fR
.RS 4
Message Archive Management (XEP\- 0313)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB list <jid>\fR
\- List messages from <jid>
.RE
.RE
.PP
\fB \- m discovery\fR
.RS 4
Service Discovery (XEP\- 0030)
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB info <jid>\fR
\- info request for <jid>
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
\fB item <jid>\fR
\- item request for <jid>
.RE
.RE
.SH "ENVIRONMENT VARIABLES"
.sp
2020-05-16 08:45:05 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
HOME
.RE
2020-04-29 19:18:24 +02:00
.SH "EXAMPLES"
.sp
.if n \{ \
.RS 4
. \}
.nf
xmppc \- \- jid user@domain\& .tld \- \- pwd "secret" \- \- mode roster list
2020-05-16 08:45:05 +02:00
xmppc \- \- jid user@domain\& .tld \- \- mode pgp chat friend@domain\& .tld "Hello"
2020-04-29 19:18:24 +02:00
xmppc \- a account1 \- \- mode discovery item conference@domain\& .tld
xmppc \- \- mode bookmark list
.fi
.if n \{ \
.RE
. \}
.SH "FILES"
.sp
Configuration file to setup accounts\& .
.PP
\fB ~/\& .config/xmppc\& .conf\fR
.RS 4
Example:
.sp
.if n \{ \
.RS 4
. \}
.nf
[default]
jid=account1@domain\& .tld
pwd=password1
.fi
.if n \{ \
.RE
. \}
.sp
.if n \{ \
.RS 4
. \}
.nf
[account2]
jid=account2@domain\& .tld
.fi
.if n \{ \
.RE
. \}
.sp
.if n \{ \
.RS 4
. \}
.nf
[account3]
jid=account3@domain\& .tld
pwd=password3
.fi
.if n \{ \
.RE
. \}
.RE
.SH "EXIT STATUS"
.PP
\fB 0\fR
.RS 4
Success
.RE
.PP
\fB 1\fR
.RS 4
Failure
.RE
.SH "BUGS"
.sp
See https://codeberg\& .org/Anoxinon_e\& .V\& ./xmppc/issues
.SH "AUTHOR"
.sp
2020-05-16 08:45:05 +02:00
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
DebXWoody (OpenPGP: A602F76893F138B4A8EFDDD5C2DC916F35751C24)
.RE
2020-04-29 19:18:24 +02:00
.SH "RESOURCES"
.sp
2020-05-16 08:45:05 +02:00
Source: https://codeberg\& .org/Anoxinon_e\& .V\& ./xmppc
.sp
Documentation: https://codeberg\& .org/Anoxinon_e\& .V\& ./xmppc/wiki
2020-04-29 19:18:24 +02:00
.SH "COPYING"
.sp
Copyright (C) 2020 Anoxinon e\& .V\& . Free use of this software is granted under the terms of the GNU General Public License (GPL)\& .