Skip to content

Commit

Permalink
Improve --db-url docs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 11, 2024
1 parent 7a27c1b commit 041af88
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Commands/core/SiteInstallCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@

namespace Drush\Commands\core;

use Composer\Autoload\ClassLoader;
use Consolidation\AnnotatedCommand\CommandData;
use Consolidation\AnnotatedCommand\Hooks\HookManager;
use Consolidation\SiteAlias\SiteAliasManager;
use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Core\Config\FileStorage;
use Drupal\Core\Database\Database;
use Drupal\Core\Installer\Exception\AlreadyInstalledException;
use Drupal\Core\Site\Settings;
use Drush\Attributes as CLI;
use Drush\Boot\BootstrapManager;
use Drush\Boot\DrupalBootLevels;
use Drush\Boot\Kernels;
use Drush\Commands\DrushCommands;
use Drush\Drush;
use Drush\Exceptions\UserAbortException;
use Drupal\Core\Config\FileStorage;
use Drush\Exec\ExecTrait;
use Drush\Sql\SqlBase;
use Drush\Utils\StringUtils;
use Psr\Container\ContainerInterface as DrushContainer;
use Symfony\Component\Filesystem\Path;
use Drush\Boot\BootstrapManager;
use Consolidation\SiteAlias\SiteAliasManager;
use Drush\Config\DrushConfig;
use Composer\Autoload\ClassLoader;

final class SiteInstallCommands extends DrushCommands
{
Expand Down Expand Up @@ -70,7 +68,7 @@ public static function createEarly(DrushContainer $drush_container): self
#[CLI\Option(name: 'sites-subdir', description: 'Name of directory under <info>sites</info> which should be created.')]
#[CLI\Option(name: 'existing-config', description: 'Configuration from <info>sync</info> directory should be imported during installation.')]
#[CLI\Usage(name: 'drush si demo_umami --locale=da', description: '(Re)install using the Umami install profile. Set default language to Danish.')]
#[CLI\Usage(name: 'drush si --db-url=mysql://root:pass@localhost:port/dbname', description: 'Install using the specified DB params.')]
#[CLI\Usage(name: 'drush si --db-url=mysql://user:pass@localhost:port/dbname', description: 'Install using the specified DB params.')]
#[CLI\Usage(name: 'drush si --db-url=sqlite://sites/example.com/files/.ht.sqlite', description: 'Install using SQLite')]
#[CLI\Usage(name: 'drush si --db-url=sqlite://:memory:', description: 'Install using SQLite in-memory database.')]
#[CLI\Usage(name: 'drush si --account-pass=mom', description: 'Re-install with specified uid1 password.')]
Expand Down

0 comments on commit 041af88

Please sign in to comment.