Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: prestashop:employee:change-password
category: Utilities
description: Reset an existing employee's password from the CLI
weight: 31
---

# `prestashop:employee:change-password`

{{< minver v="9.2" title="true" >}}

## Informations

* Path: `src/PrestaShopBundle/Command/EmployeeChangePasswordCommand.php`
* Arguments:
* `email`: Employee email __(optional, prompted when omitted)__
* Options:
* `--password`: New password. Prefer the interactive prompt to avoid leaking it in your shell history __(optional, prompted when omitted)__

## Description

This command resets the password of an existing back-office employee from the command line. By default it is interactive and prompts for the email and the new password (entered twice). Passing the email argument and the `--password` option runs it non-interactively.

On success, the employee receives the "Your new password" email, the same template used by the Back Office forgot-password flow.

To provision a new SuperAdmin instead, use [`prestashop:employee:create-admin`]({{< relref "prestashop-employee-create-admin" >}}).

## Examples

### Reset a password interactively

```bash
$ bin/console prestashop:employee:change-password
```

### Reset a password non-interactively

```bash
$ bin/console prestashop:employee:change-password admin@example.com --password='S0meStr0ngP@ss!'
```
43 changes: 43 additions & 0 deletions development/components/console/prestashop-employee-create-admin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: prestashop:employee:create-admin
category: Utilities
description: Create a back-office SuperAdmin employee from the CLI
weight: 30
---

# `prestashop:employee:create-admin`

{{< minver v="9.2" title="true" >}}

## Informations

* Path: `src/PrestaShopBundle/Command/EmployeeCreateCommand.php`
* Arguments:
* `email`: Employee email __(optional, prompted when omitted)__
* Options:
* `--first-name`: First name __(optional, prompted when omitted)__
* `--last-name`: Last name __(optional, prompted when omitted)__
* `--password`: Password. Prefer the interactive prompt to avoid leaking it in your shell history __(optional, prompted when omitted)__

## Description

This command provisions a new back-office **SuperAdmin** employee from the command line. It is intended for first-admin provisioning and recovery, not for generic employee management: use the *Team* page in the Back Office for that.

The created account is always a SuperAdmin with full back-office access, active, on the default language, and associated to every shop. By default the command is interactive and prompts for the missing values. Passing all values as arguments and options runs it non-interactively, which is convenient for CI or automated provisioning.

To reset the password of an existing employee, use [`prestashop:employee:change-password`]({{< relref "prestashop-employee-change-password" >}}).

## Examples

### Create a SuperAdmin interactively

```bash
$ bin/console prestashop:employee:create-admin
```

### Create a SuperAdmin non-interactively

```bash
$ bin/console prestashop:employee:create-admin john@example.com \
--first-name=John --last-name=Doe --password='Str0ng!Pass'
```
36 changes: 36 additions & 0 deletions development/components/console/prestashop-htaccess-generate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: prestashop:htaccess:generate
category: Utilities
description: Regenerate the .htaccess file from the CLI
weight: 32
---

# `prestashop:htaccess:generate`

{{< minver v="9.2" title="true" >}}

## Informations

* Path: `src/PrestaShopBundle/Command/GenerateHtaccessCommand.php`
* Options:
* `--force` (`-f`): Force overwrite even if the file already exists __(optional)__

## Description

This command regenerates the `.htaccess` file directly from the command line, without accessing the Back Office. This provides a faster and more consistent way to regenerate `.htaccess`, for example in deployment workflows.

If the `.htaccess` file already exists, the command warns and stops unless `--force` is passed. With `--force`, the existing file is overwritten.

## Examples

### Generate the .htaccess file

```bash
$ bin/console prestashop:htaccess:generate
```

### Overwrite an existing .htaccess file

```bash
$ bin/console prestashop:htaccess:generate --force
```
54 changes: 54 additions & 0 deletions development/components/console/prestashop-module-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
title: prestashop:module:list
category: Module Management
description: List shop modules with their version and status
weight: 20
---

# `prestashop:module:list`

{{< minver v="9.2" title="true" >}}

## Informations

* Path: `src/PrestaShopBundle/Command/ModuleListCommand.php`
* Options:
* `--active`: Show only installed and enabled modules __(optional)__
* `--disabled`: Show only installed but disabled modules __(optional)__
* `--not-installed`: Show only modules present on disk or registered via the `actionListModules` hook but not installed __(optional)__
* `--all`: Include uninstalled modules alongside installed ones __(optional)__
* `--simple`: Output only technical names, one per line, instead of a table __(optional)__

## Description

This command lists shop modules from the command line. By default it prints a table of installed modules with their name, version, and status (`Enabled` or `Disabled`), sorted alphabetically.

The scope options `--active`, `--disabled`, `--not-installed`, and `--all` are mutually exclusive: passing more than one returns an error and a non-zero exit code. The `--simple` flag is orthogonal and composes with any scope filter, which makes it convenient for `grep`, `awk`, or `xargs` pipelines.

The existing [`prestashop:module`]({{< relref "prestashop-module" >}}) command is left unchanged.

## Examples

### List all installed modules

```bash
$ bin/console prestashop:module:list
```

### List only disabled modules

```bash
$ bin/console prestashop:module:list --disabled
```

### List technical names of disabled modules, one per line

```bash
$ bin/console prestashop:module:list --simple --disabled
```

### List installed and not-installed modules together

```bash
$ bin/console prestashop:module:list --all
```
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ weight: 10

# `prestashop:thumbnails:regenerate`

{{< minver v="9.1" title="true" >}}

## Informations

* Path: `src/PrestaShopBundle/Command/RegenerateThumbnailsCommand.php`
Expand All @@ -18,8 +20,6 @@ weight: 10

## Description

Since {{< minver v="9.1.x" >}}.

This command aims to regenerate thumbnails via command line.

## Examples
Expand Down
16 changes: 16 additions & 0 deletions modules/checkout/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Checkout
menuTitle: Checkout
weight: 32
chapter: true
---

# Checkout

PrestaShop {{< minver v="9.2" >}} includes a native One Page Checkout (OPC) module in the bundle, which brings the entire checkout experience together onto a single page.

This section covers what module and theme developers need to know to make their solutions compatible with the One Page Checkout:

{{% children /%}}

{{% notice info %}} This documentation is being continuously improved. If you notice any missing or incomplete information, please help us by creating an issue on our [GitHub repository](https://github.com/PrestaShop/docs/issues/new). {{% /notice %}}
Loading
Loading