Command-line tool for Open Orion PLM.
Orion CLI is a command-line interface (CLI) tool designed for managing projects within the Open Orion PLM system.
- Create new projects
- Create revisions for projects
- Sync directories
- Python 3.8 or higher
- Poetry
First, clone the repository to your local machine:
git clone [email protected]:username/orion-cli.git
cd orion-cli
If you do not have Poetry installed, you can install it using the following command:
curl -sSL https://install.python-poetry.org | python3 -
Add Poetry to your PATH:
For bash:
echo 'export PATH="$HOME/.poetry/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
For zsh:
echo 'export PATH="$HOME/.poetry/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Navigate to the project directory and install the dependencies using Poetry:
poetry install
After installing the dependencies, you can run the CLI commands using Poetry. Here are some examples:
To create a new project, run:
poetry run orion create
Expected output:
Your project has been created
To create a new revision for a project, run:
poetry run orion revision
Expected output:
Your project has been revisioned
To sync two directories, run:
poetry run orion sync
Expected output:
Your project has been synced
To run the tests for this project, use the following command:
poetry run pytest
[Coming soon]