Metadata-Version: 2.4
Name: ansys-saf-cli
Version: 4.4.1
Summary: Command line interface for developing SAF solutions from scaffolding to packaging.
Keywords: python,saf,solution,solution application framework
Author: ANSYS, Inc.
Author-email: ANSYS, Inc. <pyansys-core@synopsys.com>
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Other Audience
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Requires-Dist: ansys-saf-templates>=0.2.0,<1.0.0
Requires-Dist: chardet>=5.2.0,<7
Requires-Dist: click>=8.1.7,<9
Requires-Dist: cookiecutter>=2.6.0,<3
Requires-Dist: packaging>=24.2,<27
Requires-Dist: pydantic>=2.7,<3
Requires-Dist: python-dotenv>=1.0.0,<2
Requires-Dist: tomlkit>=0.14.0,<1.0.0
Maintainer: ANSYS, Inc.
Maintainer-email: ANSYS, Inc. <pyansys-core@synopsys.com>
Requires-Python: >=3.11, <4
Description-Content-Type: text/x-rst

#####################################################
Solution Application Framework - CLI
#####################################################

|python| |pypi| |GH-CI| |codecov| |Apache| |ruff|

.. |python| image:: https://img.shields.io/pypi/pyversions/ansys-saf-cli?logo=python&logoColor=white&label=Python
   :target: https://pypi.org/project/ansys-saf-cli/
   :alt: Python

.. |pypi| image:: https://img.shields.io/pypi/v/ansys-saf-cli.svg?logo=pypi&logoColor=white&label=PyPI
   :target: https://pypi.org/project/ansys-saf-cli/
   :alt: PyPI

.. |GH-CI| image:: https://img.shields.io/github/actions/workflow/status/ansys/saf/ci_cd_pr.yml?branch=main&label=CI-CD&logo=github
   :target: https://github.com/ansys/saf/actions/workflows/ci_cd_pr.yml?query=branch%3Amain
   :alt: GH-CI

.. |codecov| image:: https://img.shields.io/codecov/c/github/ansys/saf?flag=saf-cli
   :target: https://app.codecov.io/gh/ansys/saf?flags[0]=saf-cli
   :alt: Codecov

.. |Apache| image:: https://img.shields.io/badge/License-Apache2.0-white.svg?labelColor=black
   :target: https://www.apache.org/licenses/
   :alt: Apache

.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
   :target: https://github.com/astral-sh/ruff
   :alt: Ruff


Overview
========

SAF CLI is a command-line tool that streamlines the development, management, and packaging of SAF-based solutions.
It provides a unified developer workflow for common SAF tasks such as scaffolding new solutions, installing and
managing solution environments, running solutions locally, executing commands in the correct Python environment,
building distributable installers, archiving solution source code, and listing registered solutions. Under the hood,
it helps coordinate the tools and services involved in the SAF ecosystem so that developers can work with solutions
through a consistent command set instead of stitching together manual steps.

+------------+------------------------------------------------------------------+
| Command    | Description                                                      |
+============+==================================================================+
| new        | Scaffold a new SAF solution from a template.                     |
+------------+------------------------------------------------------------------+
| install    | Set up the solution development environment and dependencies.    |
+------------+------------------------------------------------------------------+
| run        | Run a solution locally for development and testing.              |
+------------+------------------------------------------------------------------+
| execute    | Run arbitrary commands in the solution Python environment.       |
+------------+------------------------------------------------------------------+
| build      | Build a distributable package or installer for a solution.       |
+------------+------------------------------------------------------------------+
| add-step   | Add a new step to an existing SAF solution.                      |
+------------+------------------------------------------------------------------+
| archive    | Archive a solution source tree into a distributable bundle.      |
+------------+------------------------------------------------------------------+
| solutions  | List the solutions registered in the SAF solution database.      |
+------------+------------------------------------------------------------------+
| doc        | Open the SAF CLI documentation.                                  |
+------------+------------------------------------------------------------------+

The CLI is designed to improve developer productivity and solution consistency across the full solution lifecycle.
It reduces setup friction for new projects, lowers the amount of custom scripting teams need to maintain, and makes
local development, packaging, and delivery more repeatable.


Installation
============

Ensure you have all the necessary `prerequisites`_.

To install SAF CLI, run:

.. code-block:: bash

   pip install ansys-saf-cli


Documentation
=============

Visit the `official documentation`_ for detailed information on how to use SAF CLI.


Troubleshooting
===============

For troubleshooting or reporting issues, please open an issue in the `project repository`_.

Please follow these steps to report an issue:

- Go to the project repository.
- Click on the ``Issues`` tab.
- Click on the ``New Issue`` button.
- Provide a clear and detailed description of the issue you are facing.
- Include any relevant error messages, code snippets, or screenshots.

Additionally, you can refer to the `official documentation`_ for additional
resources and troubleshooting guides.


Contribute
==========

Contributions are welcome!
If you would like to contribute, please follow the guidelines provided in the `Contribute`_
section of the official documentation.


License
=======

You can find the full text of the license in the `LICENSE`_ file.


Changelog
=========

The changelog section provides a summary of notable changes for each version of
SAF CLI for Python. It helps you keep track of updates, bug
fixes, new features, and improvements made to the project over time.

To view the complete changelog, visit the project repository and navigate
to the `CHANGELOG`_ file. It provides a comprehensive list of changes
categorized by version, along with brief descriptions of each change.


.. _official documentation: https://saf.ansys.com/
.. _project repository: https://github.com/ansys/saf/
.. _prerequisites: https://saf.ansys.com/version/stable/getting_started/prerequisites/index.html
.. _Contribute: https://saf.ansys.com/version/stable/contribute/index.html
.. _LICENSE: https://github.com/ansys/saf/blob/main/packages/saf-cli/LICENSE
.. _CHANGELOG: https://github.com/ansys/saf/blob/main/packages/saf-cli/CHANGELOG.md
