UNPKG

2.13 kBMarkdownView Raw
1# opencollective-cli
2![](https://ci.appveyor.com/api/projects/status/5mf75q34cpr74s53?svg=true)
3
4Command Line Interface for Open Collective.
5
6## Install
7
8 $ npm install -g opencollective
9
10This will populate a `opencollective` (and its shortcut `oc`) as a command line.
11
12You can also add this as a dependency in your `package.json` to automatically show the `postinstall` donate message:
13
14 $ npm install --save opencollective
15
16Then run
17
18 $ opencollective setup
19
20
21## Commands
22
23 $ opencollective [collective] [info|stats]
24
25Shows the latest stats of the collective (number of contributors, number of backers, annual budget and current balance).
26
27![](https://cl.ly/1n2u281p2o1k/Screen%20Shot%202017-05-01%20at%204.41.58%20PM.png)
28
29 $ opencollective [collective] donate [amount] [frequency]
30
31Opens the donate page of your collective. E.g. $ opencollective webpack donate 5 monthly
32
33 $ opencollective postinstall [--plain]
34
35Reads the details of your collective in the `package.json` of the current directory and invite the user to donate after installing your package.
36Add this command in the `postinstall` script of your `package.json`.
37
38![](https://cl.ly/0u2a0z0Y3X37/Screen%20Shot%202017-03-24%20at%202.37.46%20PM.png)
39
40If you add the `--plain` option, it won't show any emoji and ascii art (better for old terminals).
41
42 $ opencollective setup
43
44Interactive setup to add your collective info into your `package.json` and add the backers/sponsors badge and avatars in your `README.md`.
45
46
47## Coming soon
48
49 $ opencollective login
50
51 $ opencollective logout
52
53 $ opencollective cc | billing
54
55 $ opencollective cc ls
56 $ opencollective cc add
57 $ opencollective cc rm
58
59 $ opencollective apply [github_repo_url]
60
61 $ opencollective show <collective>
62 $ opencollective open <collective>
63
64 $ opencollective ls // list the collectives you are contributing to.
65
66
67Stop your contribution to <collective>. Warning: may make someone sad somewhere on this planet.
68
69## Credits
70
71Shamelessly inspired by the excellent [now-cli](https://github.com/zeit/now-cli)
\No newline at end of file