Currently it's not possible to install more than one extension with a single run of the install command, which is a bit tiresome if you need to install a lot of extensions. PECL is able to do this:
$ pie install apcu/apcu xdebug/xdebug
🥧 PHP Installer for Extensions (PIE) 1.3.3, from The PHP Foundation
This command may need elevated privileges, and may prompt you for your password.
You are running PHP 8.5.1
Target PHP installation: 8.5.1 nts, on Linux/OSX/etc x86_64 (from /usr/bin/php8.5)
Found package: apcu/apcu:v5.1.28 which provides ext-apcu
Too many arguments to "install" command, expected arguments "requested-package-and-version".
install [-j|--make-parallel-jobs MAKE-PARALLEL-JOBS] [--skip-enable-extension] [--force] [-d|--working-dir WORKING-DIR] [--with-php-config WITH-PHP-CONFIG] [--with-php-path WITH-PHP-PATH] [--with-phpize-path WITH-PHPIZE-PATH] [--no-cache] [--allow-non-interactive-project-install] [--disable-apcu-mmap] [--disable-apcu-rwlocks] [--disable-valgrind-checks] [--enable-apcu] [--enable-apcu-clear-signal] [--enable-apcu-debug] [--enable-apcu-spinlocks] [--enable-coverage] [--] [<requested-package-and-version>
Currently it's not possible to install more than one extension with a single run of the install command, which is a bit tiresome if you need to install a lot of extensions. PECL is able to do this: