Command Line Cheat Sheet - NCIOCPL/cgov-digital-platform GitHub Wiki
Some useful commands
composer install
composer cgov-clean
composer install
composer require <package_name>[:<version>]
composer require drupal/<module_name>[:<version>]
composer why-not <package_name>[:<version>]
drush uli
drush ucrt [my_user_name]
drush upwd [my_user_name] [my_password]
drush urol administrator [my_user_name]
blt cgov:reinstall --no-interaction
blt cgov:rebuild-feq --no-interaction
The can save time from the above if you don't need to make sure cgov_common builds too.
cd /var/www/docroot/profiles/custom/cgov_site/themes/custom/ncids_trans/front-end
npm ci
npm run build:prod
drush ycim cgov_yaml_content
drush yci /var/www/docroot/profiles/custom/cgov_site/modules/custom/cgov_yaml_content <WORDS_LEFT_OF_.content.yaml>
Do NOT include the ".content.yml" portion.
e.g. drush yci /var/www/docroot/profiles/custom/cgov_site/modules/custom/cgov_yaml_content 200_blog-series
Begin Pending Update
blt cgov:install:site-sections
drush ycim cgov_yaml_content
OR
blt cgov:yaml:load
End Pending Update
drupal config:export --directory="../files-private/DIRECTORY_NAME" --remove-uuid --remove-config-hash