You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

quick-start.mdx 2.8 kB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import { Tab, Tabs } from 'rspress/theme';
  2. # 快速上手
  3. 安装 `dora-cli`
  4. 在命令行中运行以下命令 (不要带上 `$` 符号):
  5. <Tabs>
  6. <Tab label="pip">
  7. ```py
  8. $ pip install dora-rs-cli
  9. ```
  10. </Tab>
  11. <Tab label="Linux">
  12. ```bash
  13. $ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dora-rs/dora/releases/latest/download/dora-cli-installer.sh | sh
  14. ```
  15. </Tab>
  16. <Tab label="macOS">
  17. ```bash
  18. $ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dora-rs/dora/releases/latest/download/dora-cli-installer.sh | sh
  19. ```
  20. </Tab>
  21. <Tab label="Windows">
  22. ```bash
  23. PS C:\> powershell -ExecutionPolicy ByPass -c "irm https://github.com/dora-rs/dorareleases/latest/download/dora-cli-installer.ps1 | iex"
  24. ```
  25. </Tab>
  26. <Tab label="Cargo">
  27. ```bash
  28. $ cargo install dora-cli # In case of issues, try: `--locked`
  29. ```
  30. </Tab>
  31. <Tab label="Docker">
  32. * pull
  33. ```bash
  34. $ docker pull ghcr.io/dora-rs/dora-slim
  35. ```
  36. * run
  37. ```bash
  38. $ docker run ghcr.io/dora-rs/dora-slim dora --help
  39. ```
  40. </Tab>
  41. <Tab label="Source">
  42. 1. 安装`Rust`,详细参考:[https://echoli.cn/getting-started/install.html](https://echoli.cn/getting-started/install.html)
  43. 2. 克隆源码和编译
  44. ```bash
  45. $ git clone https://github.com/dora-rs/dora
  46. $ cd dora
  47. $ cargo build --release -p dora-cli
  48. # 在 `target\release` 目录下找到 `dora` 可执行文件,放在系统环境目录中
  49. ```
  50. </Tab>
  51. <Tab label="Download">
  52. [下载地址](https://github.com/dora-rs/dora/releases/latest) 直接下载当前系统的版本即可
  53. </Tab>
  54. </Tabs>
  55. ## 运行`dora`
  56. ```bash
  57. $ dora -h
  58. dora-rs cli client
  59. Usage: dora <COMMAND>
  60. Commands:
  61. check Check if the coordinator and the daemon is running
  62. graph Generate a visualization of the given graph using mermaid.js.
  63. Use --open to open browser
  64. build Run build commands provided in the given dataflow
  65. new Generate a new project or node. Choose the language between
  66. Rust, Python, C or C++
  67. run Run a dataflow locally
  68. up Spawn coordinator and daemon in local mode (with default
  69. config)
  70. destroy Destroy running coordinator and daemon. If some dataflows are
  71. still running, they will be stopped first
  72. start Start the given dataflow path. Attach a name to the running
  73. dataflow by using --name
  74. stop Stop the given dataflow UUID. If no id is provided, you will be
  75. able to choose between the running dataflows
  76. list List running dataflows
  77. logs Show logs of a given dataflow and node
  78. daemon Run daemon
  79. runtime Run runtime
  80. coordinator Run coordinator
  81. help Print this message or the help of the given subcommand(s)
  82. Options:
  83. -h, --help Print help
  84. -V, --version Print version
  85. ```
  86. 内容编写 : **`李扬`**

Dora中文社区官网

Contributors (1)