Search by

aldaflux / standard-user-command-bundle

AntoineInDa

User bundle inspired my fos user command

Package info

github.com/AlDaFlux/StandardUserCommandBundle

Homepage

Type:symfony-bundle

pkg:composer/aldaflux/standard-user-command-bundle

Statistics

Installs: 238

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.7 2026-09-08 06:32 UTC

This package is auto-updated.

Last update: 2026-09-08 06:45:45 UTC


README

Installation

Step 1 : Download the bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require aldaflux/standard-user-command-bundle

This command is used if composer is installed in your system.

Usage

List users

Lists all the users registered in the application.

./bin/console suc:user:list

By default, the command only displays the 50 most recent users. You can set the number of results to display with the --max-results option:

./bin/console suc:user:list --max-results=2000

Add user

Creates new users and saves them in the database.

./bin/console suc:user:add 

You can provide the arguments directly:

./bin/console suc:user:add username password email full-name

By default the command creates regular users. To create administrator users, add the --admin option:

./bin/console suc:user:add username password email --admin

If you omit any of the required arguments, the command will interactively ask you to provide the missing values.

Change password

Change the password of an existing user.

./bin/console suc:user:change-password

You can specify the identifier (username or email) directly:

./bin/console suc:user:change-password username
./bin/console suc:user:change-password user@example.com

You can alternatively specify the new password as a second argument:

./bin/console suc:user:change-password username newpassword

Promote user

Promotes a user by adding or replacing a role.

./bin/console suc:user:promote

You can specify the user identifier (username, email, or ID) and the role directly:

./bin/console suc:user:promote username ROLE_ADMIN

By default, the role is added to existing roles. To replace all existing roles with the specified role, use the --replace option:

./bin/console suc:user:promote username ROLE_ADMIN --replace

If you omit any required arguments, the command will ask for them interactively.