Skip to main content

CLI exit codes

The Veracode CLI returns an exit code to indicate whether your command succeeded or triggered an error. Some commands might have multiple exit codes.

The following table lists the exit codes and their meaning.

Exit codeCommandMeaning
0All commandsCommand completed successfully.
1All commandsGeneric error.
2All commandsParser error. Check the command input and user permissions.
3static scan and scanThe veracode static scan or veracode scan command completed successfully, but the scanned application did not pass policy.
4packageThe command completed unsuccessfully. Either no artifacts were created by the autopackager during the veracode package command, or the packaging process encountered build warnings. The behavior depends on whether you used the --strict flag:
- Without --strict: No artifacts were found. Common causes include missing source files or failed compilation.
- With --strict: The packaging completed with build warnings that should be reviewed and addressed.
4package discoverThe command did not complete successfully. No packageable artifacts were discovered, or the process produced warnings. Behavior depends on whether the --strict flag is used:
- Without --strict: No artifacts were discovered. Common causes include missing source files, failed compilation, or missing build tool prerequisites.
- With --strict: Warnings were produced, or some artifacts were not discovered. Review the reported issues.
5packageJava packaging artifact contains no .class files. The veracode package command creates an artifact, but the artifact does not contain any compiled .class files.
6packageMaven build succeeded but no artifact generated. The veracode package command using Maven completes successfully, but no artifact is generated.
7packageMaven build failed and no artifact generated. The veracode package command using Maven fails during the build process, and no artifact is generated.
125All commandsOut of memory.
126All commandsCommand failed. Check local system configuration.
127All commandsCommand not found. Check PATH configuration and command syntax.
128All commandsInvalid argument. Retry the command.
130All commandsCommand terminated by user.