# (command cmd \[arguments\] ...)
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="144"></a>
## (command cmd \[arguments\] ...)
---
Carry out this GstarCAD® command.
---
With this function, you can use any GstarCAD command within a LISP program. Any of the arguments that follow will be used for that command. Any input needed should be stored as variables using [setq](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md). Points should be assigned to variables after using the function [getpoint](%28getpoint%20-point-%20-prompt-%29.md).
Some commands continue past the points you have specified. To exit from a command, type a space within quotes to represent an **Enter,** thus ending the command.
### Examples
| Code | Results |
| --- | --- |
| (**command** "arc" '(0 0\) '(2 4\) '(8 20)) | *Using preset points.* |
| (**command** "arc" p1 p2 p3) | *Using preset variables.* |
| (**command** "line" p1 p2 p3 " ") | *Space to end the command.* |
**Tell me about...**
[(defun \[c:\] name (\[arg1 arg2 ...\] / \[local-var1 local-var2 ...\]) expression)](%28defun%20-c-%20name%20%28-arg1%20arg2%20...-%20-%20-local-var1%20local-var2%20...-%29%20expression%29.md)
[(help \[filename \[topic \[flag\]\]\])](%28help%20-filename%20-topic%20-flag-%29.md)
[(menucmd string)](%28menucmd%20string%29.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28command%20cmd%20-arguments-%20...%29.md)