Scan inline JSON, YAML, TOML, Markdown, or plain text content directly from the command line without writing it to disk first.
codegate scan-content <content...> runs the static scanner against content you supply directly as a command-line argument. It is useful for inspecting configuration snippets or instruction text before writing them to disk or installing them into a tool configuration.The command parses the content according to the declared --type, runs the full Layer 2 static pipeline on the result, and exits with the same codes as codegate scan.
scan-content lets you run the scanner on content you have retrieved or composed — before committing it to any file or passing it to a tool installer. For example, you can pipe content fetched from a remote source through scan-content to check for COMMAND_EXEC, ENV_OVERRIDE, CONSENT_BYPASS, and other findings before trusting it.
scan-content runs Layers 1 and 2 only (offline, static). It does not support --deep, --remediate, or other scan flags. Use codegate scan on a file or directory for those features.