For an inherited codebase or a project you are preparing to onboard.
Install and check your version Browse the documentation
1. Choose the project to inspect
Start in the repository you want to inspect and check your installed CLI help. The source scan accepts a directory through --path, so you can target a project without changing the shell's working directory.
This guide describes the repository's source implementation. Check the install guide and your installed command help before relying on these flags; a source checkout and a published package can differ.
stack scan --help Sources: Scan command and flags Install and version guidance
2. Generate a local service inventory
Run the JSON scan with low confidence included to review weaker signals alongside stronger matches. JSON mode returns detected provider names, confidence levels and source evidence, then exits without running provider setup or writing Stack configuration.
The scanner reads supported package manifests, framework configuration files and .env.example. Its rules cover JavaScript, Python, Go and Rust manifests. This is a catalog-based inventory, not a complete audit of every import or remote account.
stack scan --json --confidence low --path . Sources: Read-only JSON branch Detection rules and file readers
3. Review evidence before acting
Inspect each entry in hits, especially its sources and confidence. The default scan threshold is medium; an explicit low threshold includes more signals. An empty result means no matching signals met the selected threshold, not that the project has no external services.
Keep this inventory separate from automated setup. --yes implies --auto and can invoke stack add for detected providers. Provider setup can contact external services, so select and authorize that work after reviewing the inventory.
Sources: Thresholds and setup branch Provider setup boundaries
4. Decide whether to onboard or reconcile
For a project with existing .stack.toml configuration, doctor --reconcile compares configured service keys with detected provider names. Use the drift review guide below to interpret differences before removing anything.
For a project without Stack configuration, keep the scan as a planning artifact and review the quickstart before running stack add. A detected SDK alone does not establish working credentials or provider health.
Sources: Reconciliation implementation Local evidence scope Project quickstart