Code Component pull command in CLI
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3578246. --> Reported by: [wotnak](https://www.drupal.org/user/3558113) Related to !712 >>> <h3 id="overview">Overview</h3> <p>Split from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3571536" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3571536</a></span>.</p> <p>CLI command to pull components and global css from Canvas.</p> <p>Same as the existing download command, but all components (and global css), not user-chosen subset, and the components get placed into the correct directories.</p> <p>Does not need to retrieve assets, fonts, 3rd party dependencies, etc., since those can&rsquo;t be changed via Canvas UI.</p> <p>Will be later expanded with support for pulling pages in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3575874" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3575874</a></span>.</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Implement the new command to pull all code components and global css from Canvas using existing endpoints used in the download command. Replace local components when pulling components with the same machineName. When pulling new components not yet in the local codebase, place them in the configured componentDir.</p> <h3 id="ui-changes">User interface changes</h3> <p>New `canvas pull` command.</p> > Related issue: [Issue #3571536](https://www.drupal.org/node/3571536) > Related issue: [Issue #3575874](https://www.drupal.org/node/3575874) > Related issue: [Issue #3575872](https://www.drupal.org/node/3575872)
issue