Composer

cd ~

mkdir ~/.local/bin -p

wget https://getcomposer.org/installer -O ~/.local/composer-setup.php

php ~/.local/composer-setup.php --install-dir=.local/bin --filename=composer

rm ~/.local/composer-setup.php

ввести exit и открыть его заново composer

=====

composer create-project drupal/recommended-project my

composer-php8.1 create-project drupal/recommended-project my

php8.1 ~/.local/bin/composer create-project drupal/recommended-project my

php8.1 ~/.local/bin/composer require 'drupal/inline_entity_form:^1.0@RC'

php8.1 ~/.local/bin/composer require 'drupal/commerce:^2.33'