website/content/articles/command.md

52 lines
1.1 KiB
Markdown
Raw Normal View History

2020-07-30 02:57:21 +00:00
---
title: "Command Reference"
date: 2020-07-29T22:45:07-04:00
description: "Full command usage"
draft: false
weight: 1
version: "0.2.1"
---
# Comamnd Reference
## Launching a stack
The full stack listed in a configuration can be run by running the bare conductor command:
```sh
conductor
```
The run subcommand without arguments can also be used:
```sh
conductor run
```
## Launching via tags
To run a group of components without launching the entire stack specify tags in the component configuration. One or more tags can be specified to run only components that have at least one of the specified tags.
```sh
conductor run --tags web,frontend
```
## Launching by name
The name of a component can be used as a subcommand to launch that component by itself:
```sh
conductor my-component
```
## Setup a stack
Given a configuration file you can clone and initialize an entire stack. This can be useful for bootstrapping a new computer/developer.
From a folder with the conductor.yaml run:
```sh
conductor setup
```
Each component will be cloned into subfolders named after their component name (unless path is set) and their init commands will be run.