# Infrastructure Command

Work with the infrastructure part of a Rapid project.

```
rapid infrastructure <subcommand>
```

TODO

## Subcommands

- `rapid infrastructure <subinfrastructure>`: Work with the subinfrastructure &lt;subinfrastructure&gt;.
  - `rapid infrastructure <subinfrastructure> add`: Add a component to the subinfrastructure &lt;subinfrastructure&gt;.
    - `rapid infrastructure <subinfrastructure> add data_transfer_object`: Add a data transfer object to the subinfrastructure &lt;subinfrastructure&gt;.
    - `rapid infrastructure <subinfrastructure> add service_implementation`: Add a service implementation to the subinfrastructure &lt;subinfrastructure&gt;.
  - `rapid infrastructure <subinfrastructure> remove`: Remove a component from the subinfrastructure &lt;subinfrastructure&gt;.
    - `rapid infrastructure <subinfrastructure> remove data_transfer_object`: Remove a data transfer object from the subinfrastructure &lt;subinfrastructure&gt;.
    - `rapid infrastructure <subinfrastructure> remove service_implementation`: Remove a service implementation from the subinfrastructure &lt;subinfrastructure&gt;.

## rapid infrastructure &lt;subinfrastructure&gt; add data_transfer_object

```
rapid infrastructure <subinfrastructure> add data_transfer_object [arguments]
```

### Parameters

#### `--entity (-e)`

- Description: The name of the entity the data transfer object is related to.
- Type: String
- Required: Yes

#### `--output-dir (-o)`

- Description: The output directory relative to `<infrastructure_package>/lib/` .
- Type: String
- Default: `"."`

## rapid infrastructure &lt;subinfrastructure&gt; add service_implementation

```
rapid infrastructure <subinfrastructure> add service_implementation <name> [arguments]
```

### Parameters

#### `--service (-s)`

- Description: The name of the service interface the service implementation is related to.
- Type: String
- Required: Yes

#### `--output-dir (-o)`

- Description: The output directory relative to `<infrastructure_package>/lib/` .
- Type: String
- Default: `"."`

## rapid infrastructure &lt;subinfrastructure&gt; remove data_transfer_object

```
rapid infrastructure <subinfrastructure> remove data_transfer_object <name> [arguments]
```

### Parameters

#### `--dir (-d)`

- Description: The directory relative to `<infrastructure_package>/lib/` .
- Type: String
- Default: `"."`

## rapid infrastructure &lt;subinfrastructure&gt; remove service_implementation

```
rapid infrastructure <subinfrastructure> remove service_implementation <name> [arguments]
```

### Parameters

#### `--dir (-d)`

- Description: The directory relative to `<infrastructure_package>/lib/` .
- Type: String
- Default: `"."`
