> 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/docs/docs-ja/kdosukyan/local-code-scanning/ephemeral-code-scanning.md).

# 一時的なコードスキャン

結果をファイルに書き出す、1回限りのスタンドアロン SAST と依存関係スキャンを実行するには、次のようなコマンドを実行します:

```
./aikido-local-scan ephemeral-scan path_to_your_repo --apikey AIK_CI_xxx
```

これは、結果を次のファイルに書き込みます `aikido-scan-results.json` ファイル。\
\
すべての CLI オプション:

```
使用法: aikido-local-scanner ephemeral-scan [options] <path>

結果を JSON ファイルに出力するスキャンを実行します。BETA: SAST と依存関係スキャンをサポートします。

引数:
  path                               スキャンしたいパス。

オプション:
  --apikey <apikey>                  スキャン結果を処理するための API キー。 (env: AIKIDO_API_KEY)
  --repositoryname <repositoryname>  スキャン結果を検証するための Aikido リポジトリ名。 (default: "")
  --tmpdirectory <tmpdirectory>      スキャン中に使用する一時ディレクトリ。 (default: "./.aikidotmp-1783353891564")
  --debug                            コマンド出力に追加のデバッグ情報を追加します。
  --exclude <exclude_path>           スキャンから除外するファイルまたはフォルダのパスを指定します。このオプションは複数回指定できます。 (default: [])
  --result-output <output>           問題を書き込む JSON ファイル。 (default: "./aikido-scan-results.json")
  --scan-types [types...]            実行するスキャンの種類を指定します。 (choices: "code", "dependencies", default: ["code","dependencies"])
  --scan-timeout <timeout>           各スキャンのタイムアウト（ミリ秒）。(defaults to 900000ms)。
  --enable-proxy                     HTTPS_PROXY 環境変数を使用してリクエストをプロキシします
  --ca-bundle <path>                 --enable-proxy 使用時に信頼するカスタムルート CA を含む PEM ファイルへのパス。 (env: AIKIDO_CA_BUNDLE)
  --include-dev-deps                 開発用依存関係のスキャンを有効にします（例: package.json の devDependencies など）
  -h, --help                         コマンドのヘルプを表示します

```

## 一般的な使用例 <a href="#common-use-cases" id="common-use-cases"></a>

以下に、一般的なユースケースのサンプル設定をいくつか示します。\
\
依存関係スキャンのみを実行したい

```
aikido-local-scanner ephemeral-scan ./ 
--apikey AIK_CI_xxx 
--scan-types dependencies
```

コードスキャンのみを実行したい

```
aikido-local-scanner ephemeral-scan ./ 
--apikey AIK_CI_xxx 
--scan-types code
```


---

# 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/docs/docs-ja/kdosukyan/local-code-scanning/ephemeral-code-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.
