> For the complete documentation index, see [llms.txt](https://docs.interlynk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.interlynk.io/lynkctl/how-to-guides/air-gapped.md).

# Air-Gapped Environments

lynkctl can generate SBOMs without network access. The only component that normally needs the network is the OSS-index database used for vendored open-source identification. Pre-fetch it on a connected machine, then point lynkctl at the local copy.

***

## Step 1 — Fetch the Database on a Connected Machine

```bash
lynkctl db download
```

Find where it was stored:

```bash
lynkctl db path
```

## Step 2 — Transfer the Database

Copy the `oss-index.db` file to the air-gapped environment by whatever transfer mechanism you use — removable media, an internal artifact store, a base container image:

```bash
DB=$(lynkctl db path)
cp "$DB" /transfer/oss-index.db
```

## Step 3 — Run lynkctl Against the Local Database

Pass the database path explicitly with `--oss-index-db`:

```bash
lynkctl generate . --oss-index-db /opt/oss-index.db -o sbom.cdx.json
```

## Verifying the Database

`db info` inspects a cached database without touching the network — format version, build date, sha256, size, and index statistics:

```bash
lynkctl db info
```

## Generating Without Vendored Identification

If you do not need vendored open-source identification at all, skip the database entirely with `--no-oss-index`:

```bash
lynkctl generate . --no-oss-index -o sbom.cdx.json
```

This drops the OSS-index enrichment step; build-system analysis and other enrichment still run.

## Related

* [OSS-Index Database](/lynkctl/database.md) — full `db` subcommand reference
* [Running in CI/CD](/lynkctl/how-to-guides/ci-cd.md) — air-gapped runners


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.interlynk.io/lynkctl/how-to-guides/air-gapped.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
