The
existscontext
tool allows to check whether a context exists.
It uses either the id or the name of the context.
| -h,--help | Prints a help text |
| --environment | Show info about commandline environment |
| --nonl | Remove all newlines (\n) from output |
| -c,--contextid <integer> | The id of the context |
| -N,--contextname <string> | Name of the context |
On success:
context <contextid or contextname> exists
On failure:
context <contextid or contextname> does not exist>