You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --skip-install flag to databricks apps init (#5396)
Previously `apps init` always ran the project's dependency installer
(npm ci, uv sync, or pip install + venv) and there was no way to opt
out. Add a --skip-install flag that:
- skips the background npm install kicked off during prompts
- skips the per-project initializer (npm/uv/pip install plus the Node.js
`npx appkit setup` step)
- still surfaces the project's NextSteps() hint on success
Rejects --skip-install + --run dev / --run dev-remote up front since
both modes require installed dependencies. --deploy is still allowed
because it runs server-side and does not need a local node_modules.
## Changes
<!-- Brief summary of your changes that is easy to understand -->
## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
## Tests
<!-- How have you tested the changes? -->
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
---------
Co-authored-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
Co-authored-by: Fabian Jakobs <fabian.jakobs@databricks.com>
cmd.Flags().BoolVar(&deploy, "deploy", false, "Deploy the app after creation")
182
184
cmd.Flags().StringVar(&run, "run", "", "Run the app after creation (none, dev, dev-remote)")
183
185
cmd.Flags().BoolVar(&autoApprove, "auto-approve", false, "Skip confirmation prompts for optional resources. Optional resources are only configured when their values are provided via --set.")
186
+
cmd.Flags().BoolVar(&skipInstall, "skip-install", false, "Skip installing project dependencies (e.g. npm install / uv sync). Cannot be combined with --run.")
184
187
185
188
returncmd
186
189
}
@@ -202,6 +205,7 @@ type createOptions struct {
202
205
pluginsChangedbool// true if --plugins flag was explicitly set
0 commit comments