# Hubspot Line Items

> Use when the user wants to manage HubSpot line items (deal/quote line entries, priced SKU rows) via the `hubspot` command-line tool.

- Skill: `dipankar/hubspot-line-items` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dipankar/hubspot-line-items`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dipankar/hubspot-line-items/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dipankar (https://skillmd.com/u/dipankar)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dipankar/hubspot-line-items

---


# HubSpot Line Items (via `hubspot` CLI)

Line items are individual priced entries attached to deals, quotes, or invoices. Each line item is usually a reference to a product with a quantity and per-line price override.

## Auth

Set `HUBSPOT_ACCESS_TOKEN`. Optional `--profile <name>`.

## Canonical commands

| Intent | Command |
| --- | --- |
| List | `hubspot crm line-items list --limit 20` |
| Get | `hubspot crm line-items get 12345` |
| Create from product | `hubspot crm line-items create --properties '{"hs_product_id":"1001","quantity":"3","price":"99.99"}'` |
| Create ad-hoc | `hubspot crm line-items create --properties '{"name":"Custom service","quantity":"1","price":"2500.00"}'` |
| Update quantity | `hubspot crm line-items update 12345 --properties '{"quantity":"5"}'` |
| Delete | `hubspot crm line-items delete 12345 --yes` |
| Search | `hubspot crm line-items search --filter-groups '[{"filters":[{"propertyName":"hs_product_id","operator":"EQ","value":"1001"}]}]'` |

## Common properties

`name`, `hs_product_id`, `quantity`, `price`, `amount` (computed), `discount`, `tax`, `hs_recurring_billing_period`, `hs_line_item_currency_code`.

## Associating line items

A line item is only useful when attached to a deal or quote:

```bash
hubspot crm associations create line_items 12345 deals 67890
hubspot crm associations create line_items 12345 quotes 11111
```

## Scopes

- Read: `e-commerce`
- Write: `e-commerce`

## Tips

- Prefer referencing a product via `hs_product_id` over re-entering `name`/`price` so catalog updates propagate.
- All numeric properties are strings: `"quantity": "3"`, not `3`.

