The current array of dktl commands and arguments/flags to build and update sites is pretty confusing, and mostly a legacy of what made sense for Drupal 7. Let's start from scratch and think about a clear set of steps to perform essential dev tasks.
One command to rule them all
A simple one-step startup for a new site. Start in parent/projects dir. Creates project dir, initializes, gets and builds codebase, installs site.
dktl new [projectname]
Possible optional arguments
-- projectname starts a new dir in that dir, omitting projectname arg starts in current dir
-- branch/tag (default to latest tag)
-- demo: true, false (default to true)
-- frontend: true (default), false
Reorganized commands
The granular commands for everyday development tasks
dktl init Initialize directory
dktl drupal:get Drupal composer scaffold, docroot symlinks to src
dktl dkan:get Require DKAN
dktl frontend:get Download frontend into src/frontend, npm install, symlink to docroot
dktl install Install Drupal (db), turn on DKAN and other stuff
dktl demo Enable sample content module, create content, run index
dktl frontend:build Build frontend app
More tickets to come to clean up additional commands like tests and "proxy" commands
The current array of dktl commands and arguments/flags to build and update sites is pretty confusing, and mostly a legacy of what made sense for Drupal 7. Let's start from scratch and think about a clear set of steps to perform essential dev tasks.
One command to rule them all
A simple one-step startup for a new site. Start in parent/projects dir. Creates project dir, initializes, gets and builds codebase, installs site.
dktl new [projectname]
Possible optional arguments
-- projectname starts a new dir in that dir, omitting projectname arg starts in current dir -- branch/tag (default to latest tag) -- demo: true, false (default to true) -- frontend: true (default), false
Reorganized commands
The granular commands for everyday development tasks
dktl init
Initialize directorydktl drupal:get
Drupal composer scaffold, docroot symlinks to srcdktl dkan:get
Require DKANdktl frontend:get
Download frontend into src/frontend, npm install, symlink to docrootdktl install
Install Drupal (db), turn on DKAN and other stuffdktl demo
Enable sample content module, create content, run indexdktl frontend:build
Build frontend appMore tickets to come to clean up additional commands like tests and "proxy" commands