Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Latest commit

History

History
85 lines (54 loc) 路 1.4 KB

Core commands.md

File metadata and controls

85 lines (54 loc) 路 1.4 KB
title weight description
Core Commands
75
In this section, you will find more details about commands that can be used through input flags.

Core Commands with input flags

{{% alert color="info" %}}

This flags are supported since Ritchie's 2.8 release.

{{% /alert %}}

Available flags

Credentials command

rit set credential

rit set credential --provider="github" --fields="username,token" --values="Dennis,123456"

rit delete credential

rit delete credential --provider="github"

Environment commands

rit set env

rit set env --env="prod"

rit delete env

rit delete env --env="prod"

Formula commands

rit list formula

rit list formula --name="repo_name"

{{% alert color="info" %}}

If you need to list formulas from every repository you have added, use the flag 'ALL'.

{{% /alert %}}

rit list formula --name="ALL"

Repo commands

rit add repo

rit add repo --name="demo" --provider="Github" --repoUrl="https://github.com/ZupIT/ritchie-formulas-demo" --tag="2.8.9" --token="1324efg"

{{% alert color="info" %}}

When the version flag is not passed, Ritchie automatically searches for the latest version. The token flag is mandatory when the command is used to add a private repository.

{{% /alert %}}

rit delete repo

rit delete repo --name="repo_name"