linLinear CLI
Commands

lin customer

Create, inspect and manage customers

Create, inspect and manage customers

lin customer create

Create a customer

lin customer create

Example

lin customer create --name "Acme Corp" --domains acme.com
FlagTypeDefaultDescription
--domainsstringSlice[]customer domains (comma list)
--dry-run, -nboolfalseprint the intended operation and variables without executing
--external-idsstringSlice[]external ids (comma list)
--jsonstring-raw GraphQL input payload as JSON ('-' reads stdin); exclusive with per-field flags
--namestring-customer name (required)
--ownerstring-owner: email, UUID or "me"

lin customer delete

Delete a customer (requires --confirm=<id>)

lin customer delete <id>
FlagTypeDefaultDescription
--confirmstring-confirm the destructive action by repeating the resource id
--dry-run, -nboolfalseprint the intended operation and variables without executing

lin customer get

Show one customer

lin customer get <id>

lin customer list

List customers

lin customer list
FlagTypeDefaultDescription
--all, -aboolfalsefollow cursors until exhaustion
--cursorstring-resume from a previous next_cursor
--limit, -lint50page size
--querystring-filter by name (contains, case-insensitive)

lin customer merge

Merge one customer into another (source is absorbed, requires --confirm)

lin customer merge
FlagTypeDefaultDescription
--confirmstring-confirm the destructive action by repeating the resource id
--dry-run, -nboolfalseprint the intended operation and variables without executing
--sourcestring-customer UUID to merge away
--targetstring-customer UUID that absorbs the source

lin customer unsync

Detach a customer from its external sync source

lin customer unsync <id>
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing

lin customer update

Update a customer

lin customer update <id>
FlagTypeDefaultDescription
--domainsstringSlice[]customer domains (comma list)
--dry-run, -nboolfalseprint the intended operation and variables without executing
--external-idsstringSlice[]external ids (comma list)
--namestring-customer name
--ownerstring-owner: email, UUID or "me"

lin customer upsert

Create or update a customer by external id or domain

lin customer upsert
FlagTypeDefaultDescription
--domainsstringSlice[]customer domains (comma list)
--dry-run, -nboolfalseprint the intended operation and variables without executing
--external-idstring-external system id
--jsonstring-raw GraphQL input payload as JSON ('-' reads stdin); exclusive with per-field flags
--namestring-customer name

On this page