__ __ ___ ____ __ __ __ __ ____ _ ___ __
| \/ | / _ \ | _ \ \ \ / / \ \/ / / ___| | | |_ _| _ \ \
| |\/| | | | | | | |_) | \ V / \ / | | | | | | (_) | |
| | | | | |_| | | _ < | | / \ _ | |___ | |___ | | _ | |
|_| |_| \___/ |_| \_\ |_| /_/\_\ (_) \____| |_____| |___| (_) | |
/_/
Creates a new MORYX solution, optionally with some products and steps already.
moryx new <NAME> [--products <PRODUCTS>] [--steps <STEPS>] [--no-git-init]
Adds a product 'name'
moryx add product <NAME>
Adds a 'state machine' to a specified context. It adds a folder States next
to the file that contains the context including a StateBase and State files
for each provided state. The context will be updated to implement IStateContext.
Adding further states later is possible and would add the new states and update
the existing StateBase accordingly.
Note: Adding states to the States folder may lead conflicts if you try to
create states for several contexts that live inside the same path. We recommend
to move those 'to be contexts' to separate directories or libraries before
adding state machines in order to maintain a clean project structure.
moryx add states <CONTEXT> --states <Comma separated list of states>
Example
moryx add states AssemblingCell --states "Initialing, Running, Testing"
Adds a production step 'name', that is a cell with a task, aktivity, capabilites and so on.
moryx add step <NAME> [--without-cell]
Exec is meant to execute 'command' against a running MORYX instance. This is rather a workaround.
moryx exec <COMMAND> [--endpoint]
moryx exec create-dbs
The CLI uses Git repositories as templates in order to create new application projects or add any kind of features to it.
By default, this repository is https://github.com/PHOENIXCONTACT/MORYX-Template/tree/machine
if nothing else is provided to the moryx new command.
To change or switch later, from where to retrieve templates, remotes were
introduced to manage template sources within a project.
moryx remotes add <NAME> <URL> <BRANCH> Adds a Git remote to the local config
moryx remotes remove <NAME> Removes Git remotes
moryx remotes use <NAME> Uses the given remote by default
moryx remotes
moryx remotes add custom https://example.com/repo.git main
moryx remotes remove custom
moryx remotes use custom