Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.
Flags globales
Funcionan en todos los comandos. Las opciones específicas de cada comando están documentadas
en la página de cada comando y en chainpatrol <command> --help.
Flag
Descripción
--json
JSON legible por máquinas. Equivale a --output json.
--output <fmt>
Formato de salida: human, json, markdown o csv.
--quiet, -q
Suprime la salida no esencial.
--no-color
Desactiva la salida con colores. NO_COLOR en el entorno hace lo mismo.
--no-input
Desactiva los prompts interactivos. Úsalo en scripts y CI.
--dry-run
Previsualiza una mutación sin enviar la escritura. Solo para comandos de mutación.
--explain
Incluye el razonamiento y el contexto de recomendación detrás de un resultado.
--help, -h
Muestra la ayuda del comando.
--version, -V
Imprime la versión de la CLI.
--json y --output no se pueden combinar a menos que coincidan. --json --output csv
falla con Use either --json or --output, not both.
Formatos de salida
human
El formato predeterminado. Pensado para leerse en una terminal, con color cuando la terminal lo admite.
chainpatrol asset check https://phish.example
json
Todos los comandos admiten --json, y JSON es el formato sobre el cual construir: es el
único que garantiza incluir el resultado completo y no un resumen.
Los códigos de salida son estables y específicos, así que un script puede distinguir “no hay
nada que hacer” de “las credenciales expiraron” sin analizar texto.
Código
Significado
Causa típica
0
Éxito
—
1
Error desconocido
Una falla sin clasificar
2
Error de autenticación
No hay credenciales o la sesión expiró: ejecuta chainpatrol login
3
Error de uso
Argumentos faltantes o inválidos, comando desconocido
4
No encontrado
La organización, la configuración, la Proposal (propuesta para bloquear o permitir un asset) o el Asset (activo digital: URL, dirección, perfil, app, etc.) no existe
5
Prohibido
La credencial no tiene permiso para este recurso
6
Verificación fallida
Se superó un umbral de healthcheck (verificación de estado), de desviación (drift) o de cola
7
Falla parcial de mutación
Una escritura tuvo éxito para algunos elementos y falló para otros
8
Red o API no disponible
Conexión rechazada, tiempo de espera agotado, caída de un servicio externo (upstream)
El código 6 es un resultado, no una falla del programa: detections healthcheck y healthchecks run
lo devuelven cuando las verificaciones se ejecutaron bien pero algo no está sano. Trátalo
como un control de CI que no pasa, no como un error que haya que reintentar.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"ChainPatrol","colors":{"primary":"#6622DC","light":"#985EFD","dark":"#2A186B"},"logo":{"light":"https://mintcdn.com/chainpatrol/R_CITzEDbsciFTsn/logo/light.svg?fit=max\u0026auto=format\u0026n=R_CITzEDbsciFTsn\u0026q=85\u0026s=8ca4a8411113008ec8f9a57dec249989","dark":"https://mintcdn.com/chainpatrol/R_CITzEDbsciFTsn/logo/dark.svg?fit=max\u0026auto=format\u0026n=R_CITzEDbsciFTsn\u0026q=85\u0026s=3fba0f7cf94681111da5d1ce52ebf33b","href":"https://chainpatrol.com"},"favicon":"https://mintcdn.com/chainpatrol/R_CITzEDbsciFTsn/favicon.svg?fit=max\u0026auto=format\u0026n=R_CITzEDbsciFTsn\u0026q=85\u0026s=2ee94dcfc07708e2929aad42ea5ab4c5","api":{"openapi":"https://app.chainpatrol.io/api/v2/openapi.json?v=2","mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://app.chainpatrol.io/api/v2"}},"appearance":{"default":"dark"},"background":{"image":"https://mintcdn.com/chainpatrol/oLEHOzLMXL0CWKrg/background.png?fit=max\u0026auto=format\u0026n=oLEHOzLMXL0CWKrg\u0026q=85\u0026s=562d8e2e01dbe50733cb041efde433a6","color":{"dark":"#060114"}},"navbar":{"links":[{"href":"https://chainpatrol.com/blog","label":"Blog"},{"href":"https://chainpatrol.com/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.chainpatrol.io/"}},"footer":{"socials":{"x":"https://x.com/chainpatrol","linkedin":"https://www.linkedin.com/company/89545915","github":"https://github.com/chainpatrol"}},"fonts":{"heading":{"family":"IBM Plex Sans"},"body":{"family":"Inter"}},"integrations":{"ga4":{"measurementId":"G-QEBBHCD92K"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"getting-started/what-we-do/introduction"},{"language":"es","href":"es/getting-started/what-we-do/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chainpatrol","hasAudioNarration":false,"actualSubdomain":"chainpatrol","customDomains":["chainpatrol.com"],"gitSource":{"type":"github","owner":"chainpatrol","repo":"docs","deployBranch":"main","contentDirectory":"","mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afc50968d9b01397d3b25a7","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"en","tag":"API Reference","count":106},{"language":"es","tag":"Referencia de la API","count":106},{"language":"en","tag":"Documentation","count":29},{"language":"es","tag":"Documentación","count":29},{"language":"en","tag":"Integrations","count":24},{"language":"es","tag":"Integraciones","count":24},{"language":"en","tag":"JavaScript SDK","count":22},{"language":"es","tag":"SDK de JavaScript","count":22},{"language":"en","tag":"Getting Started","count":20},{"language":"es","tag":"Primeros pasos","count":20},{"language":"en","tag":"CLI","count":16},{"language":"es","tag":"CLI","count":16},{"language":"en","tag":"Concepts","count":14},{"language":"en","tag":"Assets","count":14},{"language":"es","tag":"Conceptos","count":14},{"language":"es","tag":"Assets","count":14},{"language":"en","tag":"Threat Detection","count":13},{"language":"es","tag":"Detección de amenazas","count":13},{"language":"en","tag":"Metrics","count":12},{"language":"es","tag":"Métricas","count":12}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"es/cli/output","slug":"/es/cli/output","pageMetadata":{"title":"Salida y códigos de salida","sidebarTitle":"Salida y códigos de salida","icon":"code","description":"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.","href":"/es/cli/output"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`flags-globales`,children:`Flags globales`}),`\n`,_jsxs(_components.p,{children:[`Funcionan en todos los comandos. Las opciones específicas de cada comando están documentadas\nen la página de cada comando y en `,_jsx(_components.code,{children:`chainpatrol \u003ccommand> --help`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Flag`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--json`})}),_jsxs(_components.td,{children:[`JSON legible por máquinas. Equivale a `,_jsx(_components.code,{children:`--output json`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--output \u003cfmt>`})}),_jsxs(_components.td,{children:[`Formato de salida: `,_jsx(_components.code,{children:`human`}),`, `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`markdown`}),` o `,_jsx(_components.code,{children:`csv`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`--quiet`}),`, `,_jsx(_components.code,{children:`-q`})]}),_jsx(_components.td,{children:`Suprime la salida no esencial.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--no-color`})}),_jsxs(_components.td,{children:[`Desactiva la salida con colores. `,_jsx(_components.code,{children:`NO_COLOR`}),` en el entorno hace lo mismo.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--no-input`})}),_jsx(_components.td,{children:`Desactiva los prompts interactivos. Úsalo en scripts y CI.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--dry-run`})}),_jsx(_components.td,{children:`Previsualiza una mutación sin enviar la escritura. Solo para comandos de mutación.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--explain`})}),_jsx(_components.td,{children:`Incluye el razonamiento y el contexto de recomendación detrás de un resultado.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`--help`}),`, `,_jsx(_components.code,{children:`-h`})]}),_jsx(_components.td,{children:`Muestra la ayuda del comando.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`--version`}),`, `,_jsx(_components.code,{children:`-V`})]}),_jsx(_components.td,{children:`Imprime la versión de la CLI.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`--json`}),` y `,_jsx(_components.code,{children:`--output`}),` no se pueden combinar a menos que coincidan. `,_jsx(_components.code,{children:`--json --output csv`}),`\nfalla con `,_jsx(_components.code,{children:`Use either --json or --output, not both.`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`formatos-de-salida`,children:`Formatos de salida`}),`\n`,_jsx(Heading,{level:`3`,id:`human`,children:`human`}),`\n`,_jsx(_components.p,{children:`El formato predeterminado. Pensado para leerse en una terminal, con color cuando la terminal lo admite.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` asset`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://phish.example`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`json`,children:`json`}),`\n`,_jsxs(_components.p,{children:[`Todos los comandos admiten `,_jsx(_components.code,{children:`--json`}),`, y JSON es el formato sobre el cual construir: es el\núnico que garantiza incluir el resultado completo y no un resumen.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` asset`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://phish.example`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` reports`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` acme`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --limit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.reports[].title'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Los errores también son JSON, así que un parser nunca tiene que lidiar con un flujo mixto:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Organization required. Use --org \u003cslug> to specify one.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exitCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`markdown`,children:`markdown`}),`\n`,_jsx(_components.p,{children:`Una tabla que puedes pegar en un ticket, un mensaje de Slack o un documento.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` detections`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` drift`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` acme`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --explain`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` markdown`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`csv`,children:`csv`}),`\n`,_jsx(_components.p,{children:`Para hojas de cálculo y procesamiento posterior. Los comandos que no tienen una forma\ntabular con sentido recurren a JSON.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` queues`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` snapshot`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --all`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` csv`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` queues.csv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chainpatrol`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` asset`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` list`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --asset-type`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ADDRESS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --per-page`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 500`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` csv`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`códigos-de-salida`,children:`Códigos de salida`}),`\n`,_jsx(_components.p,{children:`Los códigos de salida son estables y específicos, así que un script puede distinguir “no hay\nnada que hacer” de “las credenciales expiraron” sin analizar texto.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Código`}),_jsx(_components.th,{children:`Significado`}),_jsx(_components.th,{children:`Causa típica`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0`})}),_jsx(_components.td,{children:`Éxito`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1`})}),_jsx(_components.td,{children:`Error desconocido`}),_jsx(_components.td,{children:`Una falla sin clasificar`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2`})}),_jsx(_components.td,{children:`Error de autenticación`}),_jsxs(_components.td,{children:[`No hay credenciales o la sesión expiró: ejecuta `,_jsx(_components.code,{children:`chainpatrol login`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3`})}),_jsx(_components.td,{children:`Error de uso`}),_jsx(_components.td,{children:`Argumentos faltantes o inválidos, comando desconocido`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`4`})}),_jsx(_components.td,{children:`No encontrado`}),_jsxs(_components.td,{children:[`La organización, la configuración, la `,_jsx(_components.strong,{children:`Proposal`}),` (propuesta para bloquear o permitir un asset) o el `,_jsx(_components.strong,{children:`Asset`}),` (activo digital: URL, dirección, perfil, app, etc.) no existe`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`5`})}),_jsx(_components.td,{children:`Prohibido`}),_jsx(_components.td,{children:`La credencial no tiene permiso para este recurso`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`6`})}),_jsx(_components.td,{children:`Verificación fallida`}),_jsx(_components.td,{children:`Se superó un umbral de healthcheck (verificación de estado), de desviación (drift) o de cola`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`7`})}),_jsx(_components.td,{children:`Falla parcial de mutación`}),_jsx(_components.td,{children:`Una escritura tuvo éxito para algunos elementos y falló para otros`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`8`})}),_jsx(_components.td,{children:`Red o API no disponible`}),_jsx(_components.td,{children:`Conexión rechazada, tiempo de espera agotado, caída de un servicio externo (upstream)`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`El código `,_jsx(_components.code,{children:`6`}),` es un `,_jsx(_components.em,{children:`resultado`}),`, no una falla del programa: `,_jsx(_components.code,{children:`detections healthcheck`}),` y `,_jsx(_components.code,{children:`healthchecks run`}),`\nlo devuelven cuando las verificaciones se ejecutaron bien pero algo no está sano. Trátalo\ncomo un control de CI que no pasa, no como un error que haya que reintentar.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`#!/usr/bin/env bash`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -euo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pipefail`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` chainpatrol`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --json`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` detections`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` healthcheck`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --org`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` acme`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --run`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` health.json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`then`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` $?`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` 2`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Credentials expired\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`exit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ;;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` 6`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Detections unhealthy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`jq`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.failures'`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` health.json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`exit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ;;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` 8`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ChainPatrol unreachable, retrying later\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`exit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ;;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Unexpected failure\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`exit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ;;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` esac`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`fi`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Salida y códigos de salida","sidebarTitle":"Salida y códigos de salida","icon":"code","description":"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.","href":"/es/cli/output"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Flags globales","slug":"flags-globales","depth":2,"children":[]},{"title":"Formatos de salida","slug":"formatos-de-salida","depth":2,"children":[{"title":"human","slug":"human","depth":3,"children":[]},{"title":"json","slug":"json","depth":3,"children":[]},{"title":"markdown","slug":"markdown","depth":3,"children":[]},{"title":"csv","slug":"csv","depth":3,"children":[]}]},{"title":"Códigos de salida","slug":"códigos-de-salida","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"chainpatrol","siteName":"ChainPatrol","title":"Salida y códigos de salida - ChainPatrol","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/cli/output","matchLevel":1},"es":{"href":"/es/cli/output","matchLevel":0}}},"lastModified":"2026-11-17T13:03:24.938Z","originalFileLocation":"es/cli/output.mdx","locale":"es"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ChainPatrol\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Salida y códigos de salida - ChainPatrol\">\u003cmeta data-mint-head property=\"og:description\" content=\"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ChainPatrol\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://chainpatrol.com/docs/es/cli/output\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chainpatrol.mintlify.site/docs/_mintlify/api/og/v2?division=CLI+de+ChainPatrol\u0026amp;title=Salida+y+c%C3%B3digos+de+salida\u0026amp;description=Flags+globales+de+la+CLI+de+ChainPatrol%2C+formatos+de+salida+JSON%2C+markdown+y+CSV%2C+y+los+c%C3%B3digos+de+salida+deterministas+seg%C3%BAn+los+cuales+los+scripts+y+jobs+de+C\u0026amp;theme=4f404989bcfc71874edcffb9\u0026amp;signature=b80d5a68a8ae1632de12f971f4bff31b2f82911d67aaeb0c5ef96605db9e390e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Salida y códigos de salida - ChainPatrol\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chainpatrol.mintlify.site/docs/_mintlify/api/og/v2?division=CLI+de+ChainPatrol\u0026amp;title=Salida+y+c%C3%B3digos+de+salida\u0026amp;description=Flags+globales+de+la+CLI+de+ChainPatrol%2C+formatos+de+salida+JSON%2C+markdown+y+CSV%2C+y+los+c%C3%B3digos+de+salida+deterministas+seg%C3%BAn+los+cuales+los+scripts+y+jobs+de+C\u0026amp;theme=4f404989bcfc71874edcffb9\u0026amp;signature=b80d5a68a8ae1632de12f971f4bff31b2f82911d67aaeb0c5ef96605db9e390e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/chainpatrol/NioFQGDQy3PBOTVO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ChainPatrol\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6622DC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://chainpatrol.com/docs/es/cli/output\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/es/cli/output.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://chainpatrol.com/docs/es/cli/output\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://chainpatrol.com/docs/cli/output\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://chainpatrol.com/docs/cli/output\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://chainpatrol.com/#organization\",\"name\":\"ChainPatrol\",\"url\":\"https://chainpatrol.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chainpatrol/R_CITzEDbsciFTsn/logo/light.svg?fit=max\u0026auto=format\u0026n=R_CITzEDbsciFTsn\u0026q=85\u0026s=8ca4a8411113008ec8f9a57dec249989\"}},{\"@type\":\"WebSite\",\"@id\":\"https://chainpatrol.com/docs#website\",\"name\":\"ChainPatrol\",\"url\":\"https://chainpatrol.com/docs\",\"publisher\":{\"@id\":\"https://chainpatrol.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://chainpatrol.com/docs/es/cli/output#webpage\",\"url\":\"https://chainpatrol.com/docs/es/cli/output\",\"name\":\"Salida y códigos de salida\",\"description\":\"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\",\"dateModified\":\"2026-11-17T13:03:24.938Z\",\"isPartOf\":{\"@id\":\"https://chainpatrol.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://chainpatrol.com/docs/es/cli/output#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://chainpatrol.com/docs/es/cli/output#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CLI de ChainPatrol\",\"item\":\"https://chainpatrol.com/docs/es/cli/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Salida y códigos de salida\",\"item\":\"https://chainpatrol.com/docs/es/cli/output\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://chainpatrol.com/docs/es/cli/output#article\",\"headline\":\"Salida y códigos de salida\",\"name\":\"Salida y códigos de salida\",\"description\":\"Flags globales de la CLI de ChainPatrol, formatos de salida JSON, markdown y CSV, y los códigos de salida deterministas según los cuales los scripts y jobs de CI deberían decidir qué hacer.\",\"url\":\"https://chainpatrol.com/docs/es/cli/output\",\"mainEntityOfPage\":{\"@id\":\"https://chainpatrol.com/docs/es/cli/output#webpage\"},\"dateModified\":\"2026-11-17T13:03:24.938Z\",\"publisher\":{\"@id\":\"https://chainpatrol.com/#organization\"},\"isPartOf\":{\"@id\":\"https://chainpatrol.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ChainPatrol\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ChainPatrol\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/es/cli/output.md","siteName":"ChainPatrol","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/cli/output"}]},{"language":"es","tabs":[{"tab":"Documentación","pages":[{"title":"Documentación","href":"/es/getting-started/what-we-do/introduction"}]},{"tab":"Integraciones","pages":[{"title":"Integraciones","href":"/es/integration/discord"}]},{"tab":"Referencia de la API","pages":[{"title":"Referencia de la API","href":"/es/external-api/overview"}]},{"tab":"CLI","groups":[{"group":"CLI de ChainPatrol","pages":[{"title":"ChainPatrol CLI","sidebarTitle":"Descripción general","icon":"terminal","href":"/es/cli/overview"},{"title":"Instala la CLI de ChainPatrol","icon":"download","href":"/es/cli/installation"},{"title":"Autenticación de la CLI de ChainPatrol","icon":"key","description":"Autentica la CLI de ChainPatrol con el flujo de inicio de sesión por código de dispositivo, o con una CHAINPATROL_API_KEY para CI, shells sin interfaz (headless) y agentes de IA.","href":"/es/cli/authentication"},{"title":"Salida y códigos de salida","sidebarTitle":"Salida y códigos de salida","icon":"code","href":"/es/cli/output"},{"title":"Usar la CLI con agentes","sidebarTitle":"Agentes de IA","icon":"robot","description":"Instala la skill de ChainPatrol para Claude Code y usa --json, --dry-run, --explain y --no-input para manejar la CLI de forma segura desde scripts y agentes de IA.","href":"/es/cli/agents"}]},{"group":"Referencia de comandos","pages":[{"title":"Comando asset — verifica, lista y busca assets","sidebarTitle":"asset","icon":"shield-check","href":"/es/cli/commands/asset"},{"title":"Comando reports — crea, lista y busca reportes","sidebarTitle":"reports","icon":"flag","href":"/es/cli/commands/reports"},{"title":"Comando proposals — revisa proposals desde la terminal","sidebarTitle":"proposals","icon":"gavel","href":"/es/cli/commands/proposals"},{"title":"Comando detections — ejecuta y administra configuraciones de detección","sidebarTitle":"detections","icon":"radar","href":"/es/cli/commands/detections"},{"title":"Comando metrics — consulta las métricas de la organización","sidebarTitle":"metrics","icon":"chart-line","href":"/es/cli/commands/metrics"},{"title":"Comando threats — lista las amenazas confirmadas y bloqueadas","sidebarTitle":"threats","icon":"skull","href":"/es/cli/commands/threats"},{"title":"Comando takedowns — lista registros de takedown con filtros","sidebarTitle":"takedowns","icon":"list-check","href":"/es/cli/commands/takedowns"},{"title":"Comando orgs — lista e inspecciona organizaciones","sidebarTitle":"orgs","icon":"building","href":"/es/cli/commands/orgs"},{"title":"Comando healthchecks — lista y ejecuta healthchecks de la organización","sidebarTitle":"healthchecks","icon":"heart-pulse","href":"/es/cli/commands/healthchecks"},{"title":"Comando queues — toma una instantánea de las colas de revisión y de takedowns","sidebarTitle":"queues","icon":"layer-group","href":"/es/cli/commands/queues"},{"title":"Comando presets — ejecuta flujos de trabajo guardados de la CLI","sidebarTitle":"presets","icon":"play","href":"/es/cli/commands/presets"}]}]},{"tab":"SDK de JavaScript","pages":[{"title":"SDK de JavaScript","href":"/es/sdk/overview"}]},{"tab":"Glosario","pages":[{"title":"Glosario","href":"/es/glossary/overview"}]}]}]},"basePath":"","title":"Salida y códigos de salida - ChainPatrol","buildId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","deploymentId":"dpl_H5KQTnCewfWWvJxA7c3bCm7MFbb6","dynamics":[],"chunks":[]}