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

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

History of this file

Take it

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

lines 1–7why, one step back
1# General Command Line Topics
23```{currentmodule} click4```56```{contents}7---

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

line 8why, one step back
8depth: 1

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

lines 9–14why, one step back
9local: true
10---11```1213## Exit Codes14

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

lines 15–22why, one step back
15When 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.

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

lines 23–48why, one step back
23
24To 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```