# Function validateCommand

Security exports - Sandboxing, safety evaluation, and security components Split from index.ts for file size compliance (Issue #285)

- validateCommand(
  command: string,
  allowedCommands: readonly string[],
  ): PolicyViolation | null

  Validates a command name against the allowlist.

  #### Parameters

  - command: string
  - allowedCommands: readonly string[]

  #### Returns PolicyViolation | null

  - Defined in packages/nexus-agents/src/security/sandbox/command-allowlist.ts:104