Skip to content

Commit db794ff

Browse files
committed
Mark bin/magento scripts as bash scripts
1 parent 8494808 commit db794ff

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

cache-management.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ efficient cache management. The main cache types in Magento 2 are:
4141
Magento 2 provides a command-line tool, `bin/magento`, to enable or disable different cache types. To enable all cache
4242
types, use the following command:
4343

44-
```
44+
```bash
4545
bin/magento cache:enable
4646
```
4747

4848
To enable specific cache types, use the `--type` option followed by the cache type code. For example, to enable only the
4949
page cache and block HTML output cache, use:
5050

51-
```
51+
```bash
5252
bin/magento cache:enable page_cache block_html
5353
```
5454

5555
Similarly, to disable all cache types, use the following command:
5656

57-
```
57+
```bash
5858
bin/magento cache:disable
5959
```
6060

@@ -63,14 +63,14 @@ bin/magento cache:disable
6363
Flushing the cache clears all stored cache data, forcing Magento to recompute and regenerate the cache on the next
6464
request. To flush all cache types, run the following command:
6565

66-
```
66+
```bash
6767
bin/magento cache:flush
6868
```
6969

7070
To flush specific cache types, use the `--type` option followed by the cache type code. For example, to flush only the
7171
page cache and block HTML output cache, use:
7272

73-
```
73+
```bash
7474
bin/magento cache:flush page_cache block_html
7575
```
7676

@@ -163,7 +163,7 @@ merging XML files on each request.
163163

164164
Example: To enable Configuration Cache in Magento 2 via the command line, use the following command:
165165

166-
```
166+
```bash
167167
php bin/magento cache:enable config
168168
```
169169

@@ -174,7 +174,7 @@ merging XML files on each request, leading to improved performance.
174174

175175
Example: To enable Layout Cache in Magento 2 via the command line, use the following command:
176176

177-
```
177+
```bash
178178
php bin/magento cache:enable layout
179179
```
180180

@@ -225,7 +225,7 @@ metadata, Magento avoids querying the database for metadata information repeated
225225

226226
Example: To enable Metadata Cache in Magento 2 via the command line, use the following command:
227227

228-
```
228+
```bash
229229
php bin/magento cache:enable metadata
230230
```
231231

@@ -245,7 +245,7 @@ is useful, especially when automating deployment processes or managing multiple
245245

246246
Example: To enable the Full Page Cache via the command line, use the following command:
247247

248-
```
248+
```bash
249249
php bin/magento cache:enable full_page
250250
```
251251

@@ -267,7 +267,7 @@ Magento 2 provides cache management commands that allow you to flush specific ca
267267

268268
Example: To flush the Object Cache via the command line, use the following command:
269269

270-
```
270+
```bash
271271
php bin/magento cache:flush customer
272272
```
273273

search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ file specifies the attributes to be included in the search index. Here's an exam
8383

8484
After creating the `search_request.xml` file, you need to run the following command to apply the changes:
8585

86-
```
86+
```bash
8787
php bin/magento indexer:reindex catalogsearch_fulltext
8888
```
8989

theme-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Magento 2 provides a set of commands to deploy themes and other assets.
180180

181181
To deploy your theme, run the following command from your Magento 2 root directory:
182182

183-
```
183+
```bash
184184
bin/magento setup:static-content:deploy
185185
```
186186

0 commit comments

Comments
 (0)