Ritchie CLI is an open source project that allows to create, store and share automations, executing them through command lines.
This repository contains the CLI core, which can execute formulas stored inside other repositories such as ritchie-formulas or ritchie-formulas-demo.
In Ritchie's context, a formula is a script that can be executed automatically or interactively through a command line.
Adapting an existing script to Ritchie structure allows you to run it locally or through Docker, and to share it on a Git repository.
curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
-
Download the installer from ritchiecli.msi
-
Using Winget:
winget install Ritchie-CLI
You can also download rit packages or specific versions according to the OS on the documentation
rit init
Note: You need to import the commons repository to be able to create formulas.
Sharing metrics anonymously will help us improving the tool. For any question, check our privacy policy.
To access the "hello-world" formula, you need to add the ritchie-formulas-demo repository locally.
To do so, you can use the rit add repo
command manually on your terminal, or execute the command line below with input flags:
rit add repo --provider="Github" --name="demo" --repoUrl="https://github.com/ZupIT/ritchie-formulas-demo" --priority=1
Execute the "hello-world" formula through the command line below:
rit demo hello-world
Note: This formula has been implemented using Golang, so to use it locally you'll need Golang to be installed on your machine. If you don't have or don't want to install Golang, you can use the same command with Docker:
rit demo hello-world --docker