> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/container-image-scanning/local-image-scanning/ephemeral-image-scanning.md).

# Ephemeral Image Scanning

To run a one-time stand-alone image scan that writes results to a file run a command like:

```
./aikido-local-scan ephemeral-image-scan your-image-name --apikey AIK_CI_xxx
```

This will write findings to an `aikido-image-scan-results.json` file.\
\
All CLI options:

```
Usage: aikido-local-scanner ephemeral-image-scan [options] <image>

Run an ephemeral image scan that outputs results to a JSON file without persisting findings in Aikido.

Arguments:
  image                     The image you want to scan.

Options:
  --apikey <apikey>                 Apikey to send scanning results to Aikido. (env: AIKIDO_API_KEY)
  --platform <platform>             Set platform (to pull arm64 image on a amd64 system for example)
  --image-name <name>               Specify a name for the scanned image. This overwrites the default behaviour of deducting the image name from the <image> argument.
  --result-output <output>          JSON file to write issues to. (default: "./aikido-image-scan-results.json")
  --output-cyclonedx-json <output>  JSON file to write CycloneDX JSON SBOM to.
  --fail-on <severity>              Exit with a non-zero status code when the scan produces findings at or above the given severity. (choices: "low", "medium", "high", "critical")
  --include-unfixed                 Include CVEs that have no fix available yet (by default only fixable findings are reported).
  --debug                           Add additional debug information to command output.
  --scan-timeout <timeout>          Timeout in milliseconds for each scan (defaults to 900000ms).
  --enable-proxy                    Uses HTTPS_PROXY environment variable to proxy requests
  --ca-bundle <path>                Path to a PEM file containing custom root CA(s) to trust when using --enable-proxy. (env: AIKIDO_CA_BUNDLE)
  --disable-telemetry               Disable all error reporting (telemetry) to Aikido. (env: AIKIDO_DISABLE_TELEMETRY)
  -h, --help                        display help for command
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/container-image-scanning/local-image-scanning/ephemeral-image-scanning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
