> ## Documentation Index
> Fetch the complete documentation index at: https://docs.page/jtdLab/rapid/llms.txt
> Use this file to discover all available pages before exploring further.

# Pub Command

Work with packages in a Rapid environment.

```
rapid pub <subcommand>
```

This should be used instead of `dart pub` or `flutter pub`.
It will behave similarly to their native counterparts but also do some additional work required in the context of a Rapid project, mainly rebootstraping dependent packages.

## Subcommands

<Tabs
  values={[
    { label: "add", value: "add" },
    { label: "remove", value: "remove" },
    { label: "get", value: "get" },
  ]}
>
<TabItem value="add">

<Image src="assets/vhs/pub_add.gif" alt="Pub Add command" />

Add packages in a Rapid environment.

```bash
rapid pub add [dev:]<package>[:descriptor] [[dev:]<package>[:descriptor] ...]
```

## Parameters

### `--package (-p)`

- Description: The package where the command is run.
- Type: String
- Required: Yes
</TabItem>
<TabItem value="remove">

<Image src="assets/vhs/pub_remove.gif" alt="Pub Remove command" />

Remove packages in a Rapid environment.

```bash
rapid pub remove [packages]
```

## Parameters

### `--package (-p)`

- Description: The package where the command is run.
- Type: String
- Required: Yes
</TabItem>
<TabItem value="get">

<Image src="assets/vhs/pub_get.gif" alt="Pub Get command" />

Get packages in a Rapid environment.

```bash
rapid pub get
```

## Parameters

### `--package (-p)`

- Description: The package where the command is run.
- Type: String
- Required: Yes
</TabItem>
</Tabs>