Skip to content
Myr

command-line-reference.md

This file

Path

docs/command-line-reference.md

41 lines · 881 bytes · Markdown

Last changed by

Add reference doc for primers on command line topics.Edward Gbefore adoptionaeb1168

History of this file

Take it

Add reference doc for primers on command line topics.Edward Gbefore adoptionaeb1168

lines 1–41why, one step back
1# General Command Line Topics
23```{currentmodule} click4```56```{contents}7---8depth: 29local: 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 integer that tells you whether the command executed without errors or with errors. Exit code 0 means the command executed without errors. All of the other exit codes are defined by the Operating System, Shell, and/or command.1617To access the exit code, execute the command, then do the following depending:1819```{eval-rst}20.. tabs::2122 .. group-tab:: Powershell2324 .. code-block:: powershell2526 > echo $LASTEXITCODE2728 .. group-tab:: Bash2930 .. code-block:: bash3132 $ echo $?3334 .. group-tab:: Command Prompt353637 .. code-block:: text3839 > echo %ERRORLEVEL%4041```