File tree Expand file tree Collapse file tree 1 file changed +79
-1
lines changed Expand file tree Collapse file tree 1 file changed +79
-1
lines changed Original file line number Diff line number Diff line change 1
1
# pasty
2
- another pastebin.com cli
2
+
3
+ pasty is a cli for pastebin.com. With it you can:
4
+
5
+ - upload files
6
+ - upload strings
7
+ - list all your pastes
8
+ - delete a paste
9
+ - get paste content
10
+ - get user information (signed in user)
11
+
12
+ # usage
13
+
14
+ first, login:
15
+
16
+ ``` shell
17
+ $ pasty login < username>
18
+ ```
19
+
20
+ then, create a paste:
21
+
22
+ ``` shell
23
+ $ pasty create -s " hello world!"
24
+ ```
25
+
26
+ alternativly, you can upload a file:
27
+
28
+ ``` shell
29
+ $ pasty create -f hello_world.txt
30
+ ```
31
+
32
+ ## other commands
33
+
34
+ list all your pastes:
35
+
36
+ ``` shell
37
+ $ pasty list
38
+ ```
39
+
40
+ delete a paste:
41
+
42
+ ```
43
+ $ pasty delete <unique id>
44
+ ```
45
+
46
+ get a paste's content:
47
+
48
+ ``` shell
49
+ $ pasty get < unique id>
50
+ ```
51
+
52
+ get info about signed in user:
53
+
54
+ ``` shell
55
+ $ pasty user-info
56
+ ```
57
+
58
+ # more options
59
+
60
+ you can customize your newly created paste:
61
+
62
+ - syntax highlighting (default: none)
63
+ - [ supported hightlighting formats] ( https://pastebin.com/faq#10 )
64
+ - expiry date (default: none)
65
+ - never (N)
66
+ - 10 minutes (10M)
67
+ - 1 hour (1H)
68
+ - 1 day (1D)
69
+ - 1 week (1W)
70
+ - 1 month (1M)
71
+ - 6 months (6M)
72
+ - 1 year (1Y)
73
+ - paste visibilty (default: public)
74
+ - public
75
+ - unlisted
76
+ - private
77
+
78
+ # installation
79
+
80
+ download the latest built executable for your system and add it to your PATH variable.
You can’t perform that action at this time.
0 commit comments