> 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")
  --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)
  -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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
