Release 0.0.2
[shpub.git] / README.rst
1 **************************************
2 shpub - micropub client for your shell
3 **************************************
4 Command line micropub client written in PHP.
5
6
7 =====
8 Usage
9 =====
10
11 Initial setup
12 =============
13 ::
14
15     $ ./bin/shpub.php connect http://mywebsite http://mywebsite/user
16
17 If you pass a third parameter, then it will be the name of the connection.
18 You can select a specific server/connection with ``-s`` on all commands.
19
20
21 List configured servers/connections
22 ===================================
23 ::
24
25     $ ./bin/shpub.php server
26     rr
27     test
28     anoweco.bogo
29     local2
30
31 Also try ``-v`` which lists server and user URLs.
32
33
34 Create a like
35 =============
36 ::
37
38     $ ./bin/shpub.php like http://example.org/
39     Like created at server
40     http://anoweco.bogo/comment/23.htm
41
42 Create a reply
43 ==============
44 ::
45
46     $ ./bin/shpub.php reply http://example.org/ "Hey, cool!"
47     Reply created at server
48     http://anoweco.bogo/comment/42.htm