Skip to content
Myr

command-line-reference.md

This file

Path

docs/command-line-reference.md

48 lines · 1.1 KiB · Markdown

Last changed by

Very short description of exit codes and how to access them (#3112)Rowlando13before adoption868b611

History of this file

Take it

Very short description of exit codes and how to access them (#3112)Rowlando13before adoption868b611

lines 1–48why, one step back
1# General Command Line Topics
23```{currentmodule} click4```56```{contents}7---8depth: 19local: true10---11```1213## Exit Codes1415When a command is executed from the command line, then an exit code is return. The exit code, also called exit status or exit status code, is a positive integer that tells you whether the command executed with or without errors.1617| Exit Code | Meaning |18|-----------|-------------------------------------------------|19| 0 | Success — the command completed without errors. |20| > 0 | Executed with errors |2122Exit codes greater than zero mean are specific to the Operating System, Shell, and/or command.2324To access the exit code, execute the command, then do the following depending:2526```{eval-rst}27.. tabs::2829 .. group-tab:: Powershell3031 .. code-block:: powershell3233 > echo $LASTEXITCODE3435 .. group-tab:: Bash3637 .. code-block:: bash3839 $ echo $?4041 .. group-tab:: Command Prompt424344 .. code-block:: text4546 > echo %ERRORLEVEL%4748```