-
Notifications
You must be signed in to change notification settings - Fork 311
Adds CLI notes from recent team walk-throughs and discussions #2392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
5bd7bfb
f4facef
3af3444
5ecac59
53cf4d5
2bdd8d6
25be81c
d3bc782
7f8b246
b404c6c
978c994
feaca70
c2ae9a1
00e44d1
29161cc
fe7c418
eb438a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,13 +17,28 @@ | |
| shopware-cli project ci <path> | ||
| ``` | ||
|
|
||
| One of the most-used commands in the Shopware CLI. After cloning a repository, this command prepares a complete deployable artifact with all dependencies installed and assets compiled. Widely used in PaaS and SaaS deployments. | ||
|
|
||
| ## What does it do? | ||
|
|
||
| - It runs `composer install` (by default, only installs the production dependencies, use `--with-dev-dependencies` to install the dev dependencies as well) | ||
| - Looks for missing assets of extensions and only compiles the missing assets to speed up the build process | ||
| - Deletes unnecessary files like `node_modules` and many more to save disk space | ||
| - Deletes source code of compiled assets to save disk space | ||
| - Merges snippets of extensions to speed up Administration | ||
| - Generates a Software Bill of Materials (SBOM) listing all deployed dependencies | ||
|
|
||
| ## CI system configuration | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this happens automatically. not needed by user to specify
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Soner (@shyim) PTAL, updated that block |
||
|
|
||
| Specify which CI/CD platform to configure for: | ||
|
|
||
| ```bash | ||
| shopware-cli project ci <path> --ci github | ||
|
Check warning on line 36 in products/tools/cli/project-commands/build.md
|
||
| shopware-cli project ci <path> --ci gitlab | ||
| shopware-cli project ci <path> --ci none | ||
| ``` | ||
|
|
||
| Options: `github`, `gitlab`, `none` (default). | ||
|
Check warning on line 41 in products/tools/cli/project-commands/build.md
|
||
|
|
||
| ## Using private Composer repositories | ||
|
|
||
|
|
@@ -100,6 +115,17 @@ | |
|
|
||
| MJML compilation requires the `mjml` package to be installed via NPM in your build environment. The CLI uses local compilation to convert MJML templates to HTML. | ||
|
|
||
| ## Software Bill of Materials (SBOM) | ||
|
|
||
| The `project ci` command automatically generates a Software Bill of Materials (SBOM) file containing a list of all dependencies installed in your project. This file is useful for: | ||
|
|
||
| - **Docker images**: Container scanning tools can read SBOM files to identify dependencies and check for vulnerabilities | ||
| - **Security scanning**: Understand exactly which packages and versions are deployed in production | ||
| - **Compliance tracking**: Document all software components in your deployment artifact | ||
| - **Supply chain security**: Maintain a record of what's included in each release | ||
|
|
||
| The SBOM is included in the build artifact automatically and can be consumed by tools like Grype, Syft, and other container security scanners. | ||
|
|
||
| ## Build Hooks | ||
|
|
||
| Build hooks let you run custom shell commands at specific stages of the CI build process. This is useful for tasks like generating configuration files, running custom build steps, or integrating with external tools. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.