+{"version":"1.0.3","commands":{"export":{"id":"export","description":"Export note to local file","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli export [--pdf|--md|--html] <note_id> <output_file>"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"pdf":{"name":"pdf","type":"boolean","allowNo":false},"md":{"name":"md","type":"boolean","allowNo":false},"html":{"name":"html","type":"boolean","allowNo":false}},"args":[{"name":"noteId"},{"name":"output"}]},"history":{"id":"history","description":"List history","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli history\n\nID Name\nA58r8ehYTlySO94oiC_MUA Note1\nEeNHDGocSTi70ytMMGQaaQ Note2"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)"},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)"},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo"},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","options":["csv","json","yaml"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false}},"args":[]},"import":{"id":"import","description":"Create a note from markdown file","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli import /path/to/markdown/file.md\n\nYour note is available at https://codimd.domain/note-url\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"file"}]},"login":{"id":"login","description":"Login HackMD instance from CLI","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli login\n\nEnter your email: hello@codimd.domain\nEnter your password: *******\n\nLogin as HMD successfully!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"email":{"name":"email","type":"option","char":"u","description":"Login email"}},"args":[]},"logout":{"id":"logout","description":"Logout from CLI","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli logout\n\nYou've logged out successfully\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"whoami":{"id":"whoami","description":"Show logged in account info","pluginName":"@hackmd/codimd-cli","pluginType":"core","aliases":[],"examples":["$ codimd-cli whoami\n\nYou are logged in codimd.domain as {YOUR NAME} [user-id]\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]}}}
0 commit comments