Playground
Take anchor for a spin by using it on a remote playground git repository.
Instructions
Follow these steps to connect to a remote git playground repository and check the dynamic CLI live experience. All actions are no-op, you can safely run them as they only print to stdout.
-
Register to a remote git playground respository and set it as the default config context:
anchor config set-context-entry playground \ --repository.remote.url=https://github.com/ZachiNachshon/anchor-playground.git \ --repository.remote.autoUpdate=false \ --set-current-context -
Type
anchorto fetch the repository and print all available commands -
Check which items are available under the
team-infracommand:anchor team-infra status -
Select the
team-infracommand to start an interactive action selection, try running an action/workflow:anchor team-infra select -
Use the
runcommand to run an action non-interactively:anchor team-infra run backoffice --action=install-jenkins-master -
Run an action-set (workflow) non-interactively:
anchor team-infra run backoffice --workflow=provision-jenkins-server-agents -
Use other playground commands and run different actions to check different use cases
anchor.To add
anchor support to an existing or new git repository, please see the structure section.