qdk icon indicating copy to clipboard operation
qdk copied to clipboard

CLI tooling

Open billti opened this issue 8 months ago • 1 comments

We currently have a CLI build at part of the repo, but we don't ship it. Long term, do we need some type of CLI support?

Note that this could be a simple as a CLI added to the environment by "pip install qsharp" (e.g. https://packaging.python.org/en/latest/guides/creating-command-line-tools/ ).

Imagining for now a CLI named qsharp, perhaps this could contain subcommands such as qsharp compile ..., qsharp run ..., qsharp test ..., etc.

This would also be useful for Copilot to run commands in agent mode in editors or repo bots (e.g. to run simulations and/or verify changes).

billti avatar May 07 '25 21:05 billti

Regarding the approach of using a Python-based cmdline tool, @idavis prototyped this a while back in https://github.com/microsoft/qsharp/commit/6517954223c6ef196444435a488e9b16e756174d. Could be a good comparison point to dust that off and see how it integrates with the latest workflows.

swernli avatar May 15 '25 16:05 swernli