Command line client for Write.as https://write.as/apps/cli
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. wf-cli
  2. ======
  3. ![GPL](https://img.shields.io/github/license/writeas/writeas-cli.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/writeas/writeas-cli)](https://goreportcard.com/report/github.com/writeas/writeas-cli) [![#writeas on freenode](https://img.shields.io/badge/freenode-%23writeas-blue.svg)](http://webchat.freenode.net/?channels=writeas) [![Discuss on our forum](https://img.shields.io/discourse/https/discuss.write.as/users.svg?label=forum)](https://discuss.write.as/c/development)
  4. Command line utility for publishing to any [WriteFreely](https://writefreely.org) instance. Works on Windows, macOS, and Linux.
  5. **The WriteFreely CLI is compatible with WriteFreely v0.11 or later.**
  6. ## Features
  7. * Authenticate with any WriteFreely instance
  8. * Publish drafts
  9. * Manage multiple WriteFreely accounts on multiple instances
  10. * A stable, easy back-end for your GUI app or desktop-based workflow
  11. * Locally keeps track of any posts you make
  12. * Update and delete posts
  13. * Fetch any post by ID
  14. ## Installing
  15. The easiest way to get the CLI is to download a pre-built executable for your OS.
  16. ### Download
  17. [![Latest release](https://img.shields.io/github/release/writeas/writeas-cli.svg)](https://github.com/writeas/writeas-cli/releases/latest) ![Total downloads](https://img.shields.io/github/downloads/writeas/writeas-cli/total.svg)
  18. Get the latest version for your operating system as a standalone executable.
  19. **Windows**<br />
  20. Download the [64-bit](https://github.com/writeas/writeas-cli/releases/download/v2.0.0/wf_1.0.0_windows_amd64.zip) or [32-bit](https://github.com/writeas/writeas-cli/releases/download/v2.0.0/wf_1.0.0_windows_386.zip) executable and put it somewhere in your `%PATH%`.
  21. **macOS**<br />
  22. Download the [64-bit](https://github.com/writeas/writeas-cli/releases/download/v2.0.0/wf_1.0.0_darwin_amd64.zip) executable and put it somewhere in your `$PATH`, like `/usr/local/bin`.
  23. **Debian-based Linux**<br />
  24. ```bash
  25. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DBE07445
  26. sudo add-apt-repository "deb http://updates.writeas.org xenial main"
  27. sudo apt-get update && sudo apt-get install wf-cli
  28. ```
  29. **Linux (other)**<br />
  30. Download the [64-bit](https://github.com/writeas/writeas-cli/releases/download/v2.0.0/wf_1.0.0_linux_amd64.tar.gz) or [32-bit](https://github.com/writeas/writeas-cli/releases/download/v2.0.0/wf_1.0.0_linux_386.tar.gz) executable and put it somewhere in your `$PATH`, like `/usr/local/bin`.
  31. ### Go get it
  32. ```bash
  33. go get github.com/writeas/writeas-cli/cmd/wf
  34. ```
  35. Once this finishes, you'll see `wf` or `wf.exe` inside `$GOPATH/bin/`.
  36. ## Upgrading
  37. To upgrade the CLI, download and replace the executable you downloaded before.
  38. If you previously installed with `go get`, run it again with the `-u` option.
  39. ```bash
  40. go get -u github.com/writeas/writeas-cli/cmd/wf
  41. ```
  42. ## Usage
  43. See full usage documentation on our [User Guide](https://github.com/writeas/writeas-cli/blob/master/cmd/wf/GUIDE.md).
  44. ```
  45. wf [global options] command [command options] [arguments...]
  46. COMMANDS:
  47. post Alias for default action: create post from stdin
  48. new Compose a new post from the command-line and publish
  49. publish Publish a file
  50. delete Delete a post
  51. update Update (overwrite) a post
  52. get Read a raw post
  53. posts List draft posts
  54. blogs List blogs
  55. accounts List all currently logged in accounts
  56. auth Authenticate with a WriteFreely instance
  57. logout Log out of a WriteFreely instance
  58. help, h Shows a list of commands or help for one command
  59. GLOBAL OPTIONS:
  60. -c value, -b value Optional blog to post to
  61. --tor, -t Perform action on Tor hidden service
  62. --tor-port value Use a different port to connect to Tor (default: 9150)
  63. --code Specifies this post is code
  64. --md Returns post URL with Markdown enabled
  65. --verbose, -v Make the operation more talkative
  66. --font value Sets post font to given value (default: "mono")
  67. --lang value Sets post language to given ISO 639-1 language code
  68. --user-agent value Sets the User-Agent for API requests
  69. --host value, -H value Operate against a custom hostname
  70. --user value, -u value Use authenticated user, other than default
  71. --help, -h show help
  72. --version, -V print the version
  73. ```