Skip to content

Commit d34aa2b

Browse files
committed
feat: update package installs to v4
1 parent 1bf403c commit d34aa2b

File tree

10 files changed

+30
-27
lines changed

10 files changed

+30
-27
lines changed

.vitepress/theme/components/Home/Hero.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ import Particles from './Particles.vue';
3939
class="size-3 rounded-full bg-gray-950/5 dark:bg-white/20"></span><span class="size-3 rounded-full bg-gray-950/5 dark:bg-white/20"></span>
4040
</div>
4141
<pre>
42-
43-
<code>$ composer global require leafs/cli</code>
42+
<code>$ composer global require leafs/cli:v4.0-beta</code>
4443
<code>$ leaf create app</code>
4544
<code>$ cd app</code>
4645
</pre>

src/docs/cli/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,39 +139,39 @@ This video will help you understand how to work with packages on the Leaf CLI.
139139
This cli tool also adds a feature to install leaf packages from composer.
140140

141141
```bash:no-line-numbers
142-
leaf install leafs/ui
142+
leaf install leafs/auth
143143
```
144144

145145
If you are installing a leaf module or package, you can leave out the `leafs/` part.
146146

147147
```bash:no-line-numbers
148-
leaf install ui
148+
leaf install auth
149149
```
150150

151151
You can also pass in a bunch of packages to install at once.
152152

153153
```bash:no-line-numbers
154-
leaf install ui db illuminate/support
154+
leaf install auth db illuminate/support
155155
```
156156

157157
***Versioning***
158158

159159
Leaf CLI also allows you to install a particular version of any package using `@`
160160

161161
```bash:no-line-numbers
162-
leaf install ui@1.0 illuminate/[email protected]
162+
leaf install auth@4.0 illuminate/[email protected]
163163
```
164164

165165
### Uninstalling packages
166166

167167
This works the same way as installing packages, but you use the `uninstall` command instead.
168168

169169
```bash:no-line-numbers
170-
leaf uninstall ui
171-
leaf uninstall ui db illuminate/support
170+
leaf uninstall auth
171+
leaf uninstall auth db illuminate/support
172172
```
173173

174-
## View commands
174+
<!-- ## View commands
175175
176176
Leaf CLI also allows you to create and interact with frontend setups using the `view` commands. You can scaffold frontend setups like React, Vue, templating engines, build tools, and more.
177177
@@ -183,7 +183,7 @@ Leaf CLI ships with a `view:install` command that allows you to set up React, Vu
183183
leaf view:install --react
184184
```
185185
186-
You can also use the `--vite` and `--tailwind` options to scaffold Vite and Tailwind respectively.
186+
You can also use the `--vite` and `--tailwind` options to scaffold Vite and Tailwind respectively. -->
187187

188188
### Building frontend setups
189189

src/docs/database/redis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ After that, we can install Leaf Redis through composer or the leaf cli.
6161
::: code-group
6262

6363
```bash:no-line-numbers [Leaf CLI]
64-
leaf install redis
64+
leaf install redis@v4.0-beta
6565
```
6666

6767
```bash:no-line-numbers [Composer]
68-
composer require leafs/redis
68+
composer require leafs/redis:v4.0-beta
6969
```
7070

7171
:::

src/docs/frontend/blade.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Blade comes with Leaf MVC out of the box, fully configured and ready to use, how
3333
::: code-group
3434

3535
```bash:no-line-numbers [Leaf CLI]
36-
leaf install blade
36+
leaf install blade@v4
3737
```
3838

3939
```bash:no-line-numbers [Composer]
40-
composer require leafs/blade
40+
composer require leafs/blade:v4
4141
```
4242

4343
:::

src/docs/http/request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ This requires the Leaf FS module. If you are not using Leaf MVC, you will have t
165165
::: code-group
166166

167167
```bash:no-line-numbers [Leaf CLI]
168-
leaf install fs
168+
leaf install fs@v4
169169
```
170170

171171
```bash:no-line-numbers [Composer]
172-
composer require leafs/fs
172+
composer require leafs/fs:v4
173173
```
174174

175175
:::

src/docs/migrating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ Slim and Leaf are both micro-frameworks, so the migration process is relatively
4141
::: code-group
4242

4343
```bash:no-line-numbers [Leaf CLI]
44-
leaf install leaf
44+
leaf install leaf@v4.0-beta
4545
```
4646

4747
```bash:no-line-numbers [Composer]
48-
composer require leafs/leaf
48+
composer require leafs/leaf:4.0-beta
4949
```
5050

5151
:::

src/docs/mvc/console.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ php leaf list
1212

1313
If you get errors from commands which you saw in the documentation, you are probably running an older version of the Leaf MVC console. We add more handy commands regularly, but as the console does not automatically update, you may run into the missing command error. To fix that problem, you need to install the latest version of Aloe:
1414

15-
```bash:no-line-numbers
16-
leaf install aloe
15+
::: code-group
1716

18-
# or with composer
17+
```bash:no-line-numbers [Leaf CLI]
18+
leaf install [email protected]
19+
leaf install [email protected]
20+
```
1921

20-
composer require leafs/aloe
22+
```bash:no-line-numbers [Composer]
23+
composer require leafs/aloe:v4.0-beta
24+
composer require leafs/mvc-core:v4.0-beta
2125
```
2226

2327
:::

src/docs/utils/queues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ To get started with Queues in Leaf, you need to install the `leaf/queue` package
5454
::: code-group
5555

5656
```bash:no-line-numbers [Leaf CLI]
57-
leaf install queue
57+
leaf install queue@v4.0-beta
5858
```
5959

6060
```bash:no-line-numbers [Composer]
61-
composer require leafs/queue
61+
composer require leafs/queue:v4.0-beta
6262
```
6363

6464
:::

src/learn/basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ We've already seen how routes work by returning JSON in the previous example. No
119119
::: code-group
120120

121121
```bash:no-line-numbers [Leaf CLI]
122-
leaf install blade
122+
leaf install blade@v4
123123
```
124124

125125
```bash:no-line-numbers [Composer]
126-
composer require leafs/blade
126+
composer require leafs/blade:v4
127127
```
128128

129129
:::

src/learn/mvc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ leaf create my-app --mvc
5353
```
5454

5555
```bash:no-line-numbers [Composer]
56-
composer create-project leafs/mvc my-app
56+
composer create-project leafs/mvc:v4.0-beta my-app
5757
```
5858

5959
:::

0 commit comments

Comments
 (0)