Skip to content

Commit 783ce3e

Browse files
Update project_structure.md
1 parent 75a5875 commit 783ce3e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

episodes/project_structure.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,25 @@ description = "A simple greeting package."
5959
python = ">=3.10"
6060

6161
```
62-
62+
To add libraries via pixi command use this syntax :
63+
```bash
64+
pixi add requests
65+
```
66+
You can also generate `pixi.lock` file via this command :
67+
```bash
68+
pixi lock
69+
```
6370

64-
Lets install the dependencies now, which wiil generate the `pixi.lock` file
71+
Alternatively, Lets install the dependencies now, which wiil generate the `pixi.lock` file. This is also useful when you clone someone else repo, the dependencies are installed via the `pixi.lock` file
6572
```bash
6673
pixi install
6774
```
75+
76+
There is also a command to update your dependencies to newer versions where possible with latest compatible versions.
77+
```bash
78+
pixi update
79+
```
80+
6881
```output
6982
▪ fetching repodata [━━━━━━━━━━━━━━━━━━━━]
7083
▪ solving [━━━━━━━━━━━━━━━━━━━━] 1/1
@@ -109,3 +122,7 @@ pixi run start
109122
```output
110123
Yay! happy day! 😀
111124
```
125+
::::::::::::::::::::::::::::::::::::: keypoints
126+
- Follow the structure
127+
- Sequence of pixi commands : init -> add -> run -> lock ->install -> update
128+
::::::::::::::::::::::::::::::::::::::::::::::::

0 commit comments

Comments
 (0)