Command line interface#
Every pymapdl sub-command is a thin Click wrapper
(<name>_cli) around a plain function (<name>) that lives in the same
module, for example ansys.mapdl.core.cli.start.start(). Import the plain
function to get the behavior of a command from Python, without going through a
shell.
The plain functions return data and raise exceptions, they never print or exit the interpreter. For an introduction with examples, see Use the commands from Python.
Note
stop() is the one
exception: it lives in ansys.mapdl.core.launcher.connection instead
of ansys.mapdl.core.cli.stop, because it is also used internally by
close_all_local_instances(). It is
still re-exported as ansys.mapdl.core.cli.stop.stop and
ansys.mapdl.core.launcher.stop for convenience, and the pymapdl
stop command wraps it the same way as every other sub-command. For
consistency with launch_mapdl(), it is also exposed at the top
level of the package as stop_mapdl().
Manage instances#
Launch an MAPDL instance without connecting a client to it. |
|
Stop MAPDL instances running on a given port or with a given process ID. |
|
Render a table with the MAPDL processes running on this machine. |
|
|
Collect diagnostic information from a running MAPDL instance. |
Send APDL commands to a running MAPDL instance and return its output. |
Convert and document APDL code#
|
Convert an APDL script to PyMAPDL code. |
Render the PyMAPDL docstring of a MAPDL command for a terminal. |
Manage the bundled skills#
List the skills bundled with this PyMAPDL installation. |
|
Return the full |
|
Resolve the file operations needed to install a skill. |
|
Perform the installation described by plan. |
|
Install a bundled skill into an AI coding environment. |
Helpers#
Render the output of |
|
Build the APDL command block from the available command sources. |
|
Coerce a graphics backend name to a |
|
Connect to an already running MAPDL instance. |
|
Get list of MAPDL instances with minimal data. |
|
Silence the PyMAPDL logger so that only command output reaches stdout. |