Surveyor
Inventory surveys
- Surveyor CLI
- Surveyor IT
- Surveyor IT Pro
An inventory survey reads the files you point it at and records what is present: every file, the packages they belong to, and the cryptography they contain. Run one on your build output, a release archive or a folder of artifacts.
- Surveyor CLI
- Surveyor IT
The results are uploaded to your Topographer project as encrypted Artifact Dependency Graphs (ADGs).
- Surveyor IT Pro
- Surveyor OT Pro
The results are written to a folder you choose as Artifact Dependency Graphs (ADGs). Nothing is uploaded.
Run a survey
spice survey inventory <subject> <input>
<subject>is the name you choose for this application in Spice Labs. See Choose a subject.<input>is a folder or a single file: a jar, war or ear, a.tararchive, adocker savetarball, a disk image and so on. See Supported file types.
# Survey a build output folder and upload the results
spice survey inventory payments-api ./build/libs
# Survey a single archive
spice survey inventory payments-api ./dist/payments-api.tar
- Surveyor CLI
- Surveyor IT
By default, the survey uploads its results to your Topographer project, which needs SPICE_PASS
set to a Spice Pass for that project. To survey without uploading, see Survey locally and upload
later.
To survey a container image straight from a registry, use an image survey.
What a survey finds
The survey opens archives, images and file systems inside your input, however deeply they are nested, and fingerprints every file it finds. From those files it identifies:
- Packages: Java archives, OS packages (such as Debian, RPM and Alpine packages), Go modules built into binaries, and dependencies declared in lockfiles, including npm, cargo and Python packages.
- Cryptography: algorithms, certificates, keys and cryptographic configuration.
The run log reports how many packages it found, for example Writing 290 Package URLs. Because the survey reads built artifacts rather than manifests, it also finds components that were copied, renamed or bundled into other files.
Choose a subject
The subject is the name you give an application in Spice Labs. Spice Labs does not read it from your build: whatever you type is what the Portfolio, reports and Data health show, and surveys with the same subject are compared over time.
- One subject per application, named the way your team names it, such as
payments-apiorcustomer-portal. - The same name on every run, from every machine and pipeline that surveys that application.
payments-apiandpayments_apiare two different applications. - No versions, build numbers, branch names or dates in the name. Each different name becomes a separate application with its own history. Record those details with
--tag-jsoninstead:
spice survey inventory payments-api ./build/libs --tag-json='{"version":"2.3.0","branch":"main"}'
Survey locally and upload later
Add --no-upload to survey on your machine only. Always pass --output with it, so the results land in a folder you choose:
spice survey inventory payments-api ./build/libs --no-upload --output ./spice-results
- Surveyor CLI
- Surveyor IT
--no-upload run.This example surveys a small project directory,
my-app, and keeps the results on disk with--no-uploadand--output.ls my-app~ ❯ ls my-app Sample.java readme.txtls my-app~ ❯ ls my-app Sample.java readme.txtls my-app~ ❯ ls my-app Sample.java readme.txtThe input is an ordinary directory, here holding a source file and a text file. Any mix of jars, wheels, archives, images exported to disk and other files can be surveyed; the survey identifies each file by its content, not by its name.
spice survey inventory my-app ./my-app \ --no-upload --output ./out --log-level info~ ❯ spice survey inventory my-app ./my-app \ > --no-upload --output ./out --log-level info INFO 🌶️ Spice Labs Surveyor CLI v1.9.11 INFO 📦 Surveying artifacts... INFO Correlation ID: e3f1edb0-8924-46c8-b991-f8bdd311578d INFO Configuration: out = /tmp/spice/cli/inventory-no-upload/out/surveyor/survey-7846219170632751822/survey, build = /tmp/spice/cli/inventory-no-upload/my-app, tag = my-app, threads = 1, maxRecords = 5000, tempDir = /tmp/spice/cli/inventory-no-upload/out/surveyor/survey-7846219170632751822/tmp, useStaticMetadata = true, fsFilePaths = true INFO Found all files, count 2 INFO Blocking build db until there's at least 1 item in the work queue INFO MIME pass complete: 2 total, 2 completed INFO Kicking off work queue consumer threads INFO Starting multi-thread consumer loop 1 at PT0.998544203S INFO Processed 2 of 2, batch survey complete INFO Finished processing 2, vertices 14 at PT0.036207598S INFO Writing 0 Package URLs INFO Post-sort at PT0.00677964S INFO Post CBOR cache at PT0.017515685S INFO Wrote ADG cluster 2026_10_14_17_55_32_67601f17209d31ee.grc sha256 67601f17209d31ee0c77a365f7c15e4d0a774154fe2c0f01a56159574cf5b475 INFO Wrote 14 entries in PT0.045241957S INFO Total build time for survey PT0.082088723S, write took PT0.045767134S INFO Done with runspice survey inventory my-app ./my-app \ --no-upload --output ./out --log-level info~ ❯ spice survey inventory my-app ./my-app \ > --no-upload --output ./out --log-level info INFO 🌶️ Spice Labs Surveyor CLI v1.9.11 INFO 📦 Surveying artifacts... INFO Correlation ID: 981aee86-8f28-4d6a-8236-879dd6d7fb88 INFO Configuration: out = /tmp/spice/it/inventory-no-upload/out/surveyor/survey-11607496422247276418/survey, build = /tmp/spice/it/inventory-no-upload/my-app, tag = my-app, threads = 1, maxRecords = 5000, tempDir = /tmp/spice/it/inventory-no-upload/out/surveyor/survey-11607496422247276418/tmp, useStaticMetadata = true, fsFilePaths = true INFO Found all files, count 2 INFO Blocking build db until there's at least 1 item in the work queue INFO MIME pass complete: 2 total, 2 completed INFO Kicking off work queue consumer threads INFO Starting multi-thread consumer loop 1 at PT1.280771331S INFO Processed 2 of 2, batch survey complete INFO Finished processing 2, vertices 14 at PT0.04301572S INFO Writing 0 Package URLs INFO Post-sort at PT0.006695491S INFO Post CBOR cache at PT0.018398957S INFO Wrote ADG cluster 2026_10_14_17_57_43_3b6e87a69ecb73bf.grc sha256 3b6e87a69ecb73bf55e0329b6e96d2f23ae80c2b07eeb4e6ab7f593d5a3522ee INFO Wrote 14 entries in PT0.052407929S INFO Total build time for survey PT0.097204654S, write took PT0.05342558S INFO Done with runspice survey inventory my-app ./my-app \ --no-upload --output ./out --log-level info~ ❯ spice survey inventory my-app ./my-app \ > --no-upload --output ./out --log-level info INFO 🌶️ Spice Labs Surveyor CLI v1.9.11 INFO 📦 Surveying artifacts... INFO Correlation ID: 806c0b8c-a354-4baf-a546-82af79376ee5 INFO Configuration: out = /tmp/spice/itpro/inventory-no-upload/out/surveyor/survey-9107115779278410670/survey, build = /tmp/spice/itpro/inventory-no-upload/my-app, tag = my-app, threads = 1, maxRecords = 5000, tempDir = /tmp/spice/itpro/inventory-no-upload/out/surveyor/survey-9107115779278410670/tmp, useStaticMetadata = true, fsFilePaths = true INFO Found all files, count 2 INFO Blocking build db until there's at least 1 item in the work queue INFO MIME pass complete: 2 total, 2 completed INFO Kicking off work queue consumer threads INFO Starting multi-thread consumer loop 1 at PT1.266947467S INFO Processed 2 of 2, batch survey complete INFO Finished processing 2, vertices 14 at PT0.042368496S INFO Writing 0 Package URLs INFO Post-sort at PT0.006641317S INFO Post CBOR cache at PT0.021525211S INFO Wrote ADG cluster 2026_10_14_17_57_26_5a13c9d6da0397be.grc sha256 da13c9d6da0397be46e1b85fc7743c2419ae4dca3a219df6d635441640f72805 INFO Wrote 14 entries in PT0.053601289S INFO Total build time for survey PT0.096737569S, write took PT0.054233129S INFO Done with runThe survey runs in the foreground and logs its progress: the files it found, how many it has classified by type, then the analysis and the writing of the results. This is the default
infolevel of detail, which the example also sets explicitly;--log-levelchanges it.find out -maxdepth 2 | head -20~ ❯ find out -maxdepth 2 | head -20 out out/surveyor out/surveyor/survey-7846219170632751822find out -maxdepth 2 | head -20~ ❯ find out -maxdepth 2 | head -20 out out/surveyor out/surveyor/survey-11607496422247276418find out -maxdepth 2 | head -20~ ❯ find out -maxdepth 2 | head -20 out out/surveyor out/surveyor/survey-9107115779278410670The results are written under the
--outputdirectory, insurveyor/survey-<id>. It can be uploaded later with--upload-only. Without--no-upload, and withSPICE_PASSset, the same command uploads the results to your project as soon as the analysis finishes. Everything the survey produced is in that directory; nothing leaves the machine.
Each run creates its own folder inside the one you name, so repeat runs never overwrite each other:
spice-results/
surveyor/
survey-<random-id>/
survey/ the ADGs
- Surveyor CLI
- Surveyor IT
To upload those results later without surveying again, point --upload-only at the survey-<random-id> folder from that run:
spice survey inventory payments-api ./spice-results/surveyor/survey-<random-id> --upload-onlyYou cannot combine --no-upload and --upload-only in one run.
Tag a survey with metadata
Use --tag-json to attach your own labels, such as the environment, branch or owning team. The value must be a JSON object:
spice survey inventory payments-api ./build/libs --tag-json='{"env":"prod","team":"platform"}'
PowerShell 7 accepts the same syntax. Windows PowerShell 5.1 strips the outer quotes, so assign the JSON to a variable first:
$json = '{"env":"prod","team":"platform"}'
spice survey inventory payments-api C:\path\to\build --tag-json=$json
Tune large surveys
| Option | What it controls | Default |
|---|---|---|
--threads | Number of analysis threads (1 or more) | Half your CPU cores |
--max-records | Records processed per batch | 5000 |
--chunk-size sets the upload chunk size in MB; by default Spice Labs chooses it.
For example, to use fewer threads on a shared build machine:
spice survey inventory payments-api ./build/libs --threads=2
To use the same values on every run, put them in a configuration file instead.
Keep a log of the run
Use --log-level for more or less detail (error, warn, info, debug or trace) and --log-file to save a copy of everything the run prints:
spice survey inventory payments-api ./build/libs --log-level=debug --log-file=./spice.log
The log file is appended to, not replaced, so one file can hold several runs.
Artifact cutoff
A Spice Pass issued for a trial or a demo, or a Spice License, can carry an artifact cutoff: a date after which published artifacts are left out of the survey, together with anything that contains them. Spice Passes for paid projects have no cutoff and survey everything.
When your credential has a cutoff, the run says so:
Ignoring artifacts published after 2026-01-01T00:00:00Z
The cutoff comes from the credential, so no option or setting changes it. To check yours, run spice pass decode and look for Artifact Cutoff.
- Surveyor CLI
- Surveyor IT
See the results
When the upload finishes, the survey appears in your project in the dashboard, and Topographer builds its reports from it, including the post-quantum readiness report and the CBOM. To correlate this survey with what your application does at run time, also run a runtime survey anchored to the same artifact.