@@ -18,7 +18,7 @@ $ npm install -g @hackmd/hackmd-cli
18
18
$ hackmd-cli COMMAND
19
19
running command...
20
20
$ hackmd-cli (-v| --version| version)
21
- @hackmd/hackmd-cli/1.1.0 linux -x64 node-v12.16.2
21
+ @hackmd/hackmd-cli/1.1.1 darwin -x64 node-v12.16.2
22
22
$ hackmd-cli --help [COMMAND]
23
23
USAGE
24
24
$ hackmd-cli COMMAND
@@ -86,6 +86,7 @@ _Don't commit your login credentials!_
86
86
* [ ` hackmd-cli import [FILE] ` ] ( #hackmd-cli-import-file )
87
87
* [ ` hackmd-cli login ` ] ( #hackmd-cli-login )
88
88
* [ ` hackmd-cli logout ` ] ( #hackmd-cli-logout )
89
+ * [ ` hackmd-cli teams ` ] ( #hackmd-cli-teams )
89
90
* [ ` hackmd-cli whoami ` ] ( #hackmd-cli-whoami )
90
91
91
92
## ` hackmd-cli export [NOTEID] [OUTPUT] `
@@ -106,7 +107,7 @@ EXAMPLE
106
107
$ hackmd-cli export [--pdf|--md|--html] <note_id> <output_file>
107
108
```
108
109
109
- _ See code: [ src/commands/export.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0 /src/commands/export.ts ) _
110
+ _ See code: [ src/commands/export.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1 /src/commands/export.ts ) _
110
111
111
112
## ` hackmd-cli help [COMMAND] `
112
113
@@ -152,7 +153,7 @@ EXAMPLE
152
153
EeNHDGocSTi70ytMMGQaaQ Note2
153
154
```
154
155
155
- _ See code: [ src/commands/history.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0 /src/commands/history.ts ) _
156
+ _ See code: [ src/commands/history.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1 /src/commands/history.ts ) _
156
157
157
158
## ` hackmd-cli import [FILE] `
158
159
@@ -163,19 +164,20 @@ USAGE
163
164
$ hackmd-cli import [FILE]
164
165
165
166
OPTIONS
166
- -h, --help show CLI help
167
+ -h, --help show CLI help
168
+ -t, --team=team team to use
167
169
168
170
EXAMPLE
169
- $ hackmd-cli import /path/to/markdown/file.md
171
+ $ hackmd-cli import /path/to/markdown/file.md --team=xxx
170
172
171
- Your note is available at https://codimd.domain /note-url
173
+ Your note is available at https://hackmd.io /note-url
172
174
```
173
175
174
- _ See code: [ src/commands/import.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0 /src/commands/import.ts ) _
176
+ _ See code: [ src/commands/import.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1 /src/commands/import.ts ) _
175
177
176
178
## ` hackmd-cli login `
177
179
178
- Login HackMD instance from CLI
180
+ Login to HackMD/CodiMD server from CLI
179
181
180
182
```
181
183
USAGE
@@ -189,13 +191,13 @@ OPTIONS
189
191
EXAMPLE
190
192
$ hackmd-cli login
191
193
192
- Enter your email: hello@codimd.domain
194
+ Enter your email: hello@hackmd.io
193
195
Enter your password: *******
194
196
195
197
Login as HMD successfully!
196
198
```
197
199
198
- _ See code: [ src/commands/login.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0 /src/commands/login.ts ) _
200
+ _ See code: [ src/commands/login.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1 /src/commands/login.ts ) _
199
201
200
202
## ` hackmd-cli logout `
201
203
@@ -214,7 +216,36 @@ EXAMPLE
214
216
You've logged out successfully
215
217
```
216
218
217
- _ See code: [ src/commands/logout.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0/src/commands/logout.ts ) _
219
+ _ See code: [ src/commands/logout.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1/src/commands/logout.ts ) _
220
+
221
+ ## ` hackmd-cli teams `
222
+
223
+ HackMD Teams Command
224
+
225
+ ```
226
+ USAGE
227
+ $ hackmd-cli teams
228
+
229
+ OPTIONS
230
+ -h, --help show CLI help
231
+ -x, --extended show extra columns
232
+ --columns=columns only show provided columns (comma-separated)
233
+ --csv output is csv format [alias: --output=csv]
234
+ --filter=filter filter property by partial string matching, ex: name=foo
235
+ --no-header hide table header from output
236
+ --no-truncate do not truncate output to fit screen
237
+ --output=csv|json|yaml output in a more machine friendly format
238
+ --sort=sort property to sort by (prepend '-' for descending)
239
+
240
+ EXAMPLE
241
+ $ hackmd-cli teams
242
+
243
+ Path Name
244
+ team1 Team 1
245
+ my-awesome-team My Awesome Team
246
+ ```
247
+
248
+ _ See code: [ src/commands/teams.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1/src/commands/teams.ts ) _
218
249
219
250
## ` hackmd-cli whoami `
220
251
@@ -233,7 +264,7 @@ EXAMPLE
233
264
You are logged in hackmd.io as {YOUR NAME} [user-id]
234
265
```
235
266
236
- _ See code: [ src/commands/whoami.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.0 /src/commands/whoami.ts ) _
267
+ _ See code: [ src/commands/whoami.ts] ( https://github.com/hackmdio/hackmd-cli/blob/v1.1.1 /src/commands/whoami.ts ) _
237
268
<!-- commandsstop -->
238
269
239
270
## ` hackmd-cli ` piping mode
0 commit comments