You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install/cli_install.md
+20-8
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,29 @@
9
9
10
10
### Detail Installation
11
11
```bash
12
-
# Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
13
-
npm --version
14
-
sudo npm install -g @mermaid-js/mermaid-cli
15
-
16
-
# Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:
12
+
# Step 1: Ensure that Python 3.9+ is installed on your system. You can check this by using:
13
+
# You can use conda to initialize a new python env
14
+
# conda create -n metagpt python=3.9
15
+
# conda activate metagpt
17
16
python3 --version
18
17
19
-
# Step 3: Clone the repository to your local machine, and install it.
18
+
# Step 2: Clone the repository to your local machine for latest version, and install it.
pip3 install -e .# or pip3 install metagpt # for stable version
22
+
23
+
# Step 3: setup your LLM key in the config2.yaml file
24
+
mkdir ~/.metagpt
25
+
cp config/config2.yaml ~/.metagpt/config2.yaml
26
+
vim ~/.metagpt/config2.yaml
27
+
28
+
# Step 4: run metagpt cli
29
+
metagpt "Create a 2048 game in python"
30
+
31
+
# Step 5 [Optional]: If you want to save the artifacts like diagrams such as quadrant chart, system designs, sequence flow in the workspace, you can execute the step before Step 3. By default, the framework is compatible, and the entire process can be run completely without executing this step.
32
+
# If executing, ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
33
+
npm --version
34
+
sudo npm install -g @mermaid-js/mermaid-cli
23
35
```
24
36
25
37
**Note:**
@@ -35,7 +47,7 @@ pip install -e.
35
47
36
48
- don't forget to the configuration for mmdc path in config.yml
โ --project-name TEXT Unique project name, such as 'game_2048'. โ
51
+
โ --inc --no-inc Incremental mode. Use it to coop with existing repo. [default: no-inc] โ
52
+
โ --project-path TEXT Specify the directory path of the old version project to fulfill the incremental requirements. โ
53
+
โ --reqa-file TEXT Specify the source file name for rewriting the quality assurance code. โ
54
+
โ --max-auto-summarize-code INTEGER The maximum number of times the 'SummarizeCode' action is automatically invoked, with -1 indicating unlimited. This parameter is used for debugging the โ
55
+
โ workflow. โ
56
+
โ [default: 0] โ
57
+
โ --recover-path TEXT recover the project from existing serialized storage [default: None] โ
58
+
โ --init-config --no-init-config Initialize the configuration file for MetaGPT. [default: no-init-config] โ
โ --project-name TEXT Unique project name, such as 'game_2048'. โ
47
+
โ --inc --no-inc Incremental mode. Use it to coop with existing repo. [default: no-inc] โ
48
+
โ --project-path TEXT Specify the directory path of the old version project to fulfill the incremental requirements. โ
49
+
โ --reqa-file TEXT Specify the source file name for rewriting the quality assurance code. โ
50
+
โ --max-auto-summarize-code INTEGER The maximum number of times the 'SummarizeCode' action is automatically invoked, with -1 indicating unlimited. This parameter is used for debugging the โ
51
+
โ workflow. โ
52
+
โ [default: 0] โ
53
+
โ --recover-path TEXT recover the project from existing serialized storage [default: None] โ
54
+
โ --init-config --no-init-config Initialize the configuration file for MetaGPT. [default: no-init-config] โ
0 commit comments