Skip to content
Open
10 changes: 5 additions & 5 deletions packages/cli/plugins/sentry-cli/skills/sentry-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Work with Sentry projects

- `sentry project create [<org>/]<name>:<platform>...` — Create one or more projects
- `sentry project delete <org/project>` — Delete a project
- `sentry project list [<org/project>]` — List projects
- `sentry project list [<org/project>] [<filter>]` — List projects
- `sentry project view [<org/project>]` — View details of a project

→ Full flags and examples: `references/project.md`
Expand Down Expand Up @@ -630,23 +630,23 @@ Work with Sentry releases

Work with Sentry repositories

- `sentry repo list [<org/project>]` — List repositories
- `sentry repo list [<org/project>] [<filter>]` — List repositories

→ Full flags and examples: `references/repo.md`

### Team

Work with Sentry teams

- `sentry team list [<org/project>]` — List teams
- `sentry team list [<org/project>] [<filter>]` — List teams

→ Full flags and examples: `references/team.md`

### Integration

Work with Sentry integrations

- `sentry integration list [<org/project>]` — List installed integrations
- `sentry integration list [<org/project>] [<filter>]` — List installed integrations
- `sentry integration delete <org/integration-id>` — Remove an installed integration

→ Full flags and examples: `references/integration.md`
Expand Down Expand Up @@ -693,7 +693,7 @@ Start a local Sentry MCP server
Work with Sentry cron monitors

- `sentry monitor run <monitor-slug command...>` — Wrap a command with cron monitor check-ins
- `sentry monitor list [<org/project>]` — List cron monitors
- `sentry monitor list [<org/project>] [<filter>]` — List cron monitors

→ Full flags and examples: `references/monitor.md`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requires:

Work with Sentry integrations

### `sentry integration list [<org/project>]`
### `sentry integration list [<org/project>] [<filter>]`

List installed integrations

Expand Down Expand Up @@ -44,6 +44,12 @@ sentry integration list my-org/
# Fetch the next page
sentry integration list my-org/ -c next

# Only integrations whose name or provider matches a glob
sentry integration list 'my-org/git*'

# Integrations named like 'GitHub' (fuzzy when nothing matches exactly)
sentry integration list my-org/githb

# Output as JSON
sentry integration list --json
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sentry monitor run nightly-job npm run task
sentry monitor run nightly-job -s "0 0 * * *" --max-runtime 30 --timezone UTC -- ./backup.sh
```

### `sentry monitor list [<org/project>]`
### `sentry monitor list [<org/project>] [<filter>]`

List cron monitors

Expand Down Expand Up @@ -72,6 +72,12 @@ sentry monitor list my-org/
# Fetch the next page
sentry monitor list my-org/ -c next

# Only monitors whose slug or name matches a glob
sentry monitor list 'my-org/nightly-*'

# Monitors named like 'nightly' (fuzzy when nothing matches exactly)
sentry monitor list my-org/nigthly

# Output as JSON
sentry monitor list --json
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sentry project delete my-org/old-project --yes
sentry project delete my-org/old-project --dry-run
```

### `sentry project list [<org/project>]`
### `sentry project list [<org/project>] [<filter>]`

List projects

Expand All @@ -83,6 +83,12 @@ sentry project list my-org/frontend,backend

# Filter by platform
sentry project list my-org/ --platform javascript

# Only projects whose slug or name matches a glob
sentry project list 'my-org/web-*'

# Projects named like 'frontend' (fuzzy when nothing matches exactly)
sentry project list my-org/frontnd
```

### `sentry project view [<org/project>]`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requires:

Work with Sentry repositories

### `sentry repo list [<org/project>]`
### `sentry repo list [<org/project>] [<filter>]`

List repositories

Expand Down Expand Up @@ -46,6 +46,12 @@ sentry repo list my-org/
# Fetch the next page
sentry repo list my-org/ -c next

# Only repositories whose name matches a glob
sentry repo list 'my-org/getsentry/*'
Comment thread
sentry-junior[bot] marked this conversation as resolved.

# Repositories named like 'sentry-python' (fuzzy when nothing matches exactly)
sentry repo list my-org/sentry-pyhton

# Output as JSON
sentry repo list --json
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ requires:

Work with Sentry teams

### `sentry team list [<org/project>]`
### `sentry team list [<org/project>] [<filter>]`

List teams

Expand Down Expand Up @@ -44,6 +44,12 @@ sentry team list my-org/
# Fetch the next page
sentry team list my-org/ -c next

# Only teams whose slug or name matches a glob
sentry team list 'my-org/back*'

# Teams named like 'backend' when no such project exists (fuzzy)
sentry team list my-org/backnd

# Output as JSON
sentry team list --json
```
Expand Down
15 changes: 14 additions & 1 deletion packages/cli/src/commands/integration/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const integrationListConfig: OrgListConfig<
listForOrg: (org) => listIntegrations(org),
listPaginated: (org, opts) => listIntegrationsPaginated(org, opts),
withOrg: (integration, orgSlug) => ({ ...integration, orgSlug }),
// The install label (e.g. a GitHub org) and the product (`GitHub`), so
// `<org>/git*` finds GitHub installs whatever their label.
namesOf: (integration) => [integration.name, integration.provider.name],
displayTable: (integrations: IntegrationWithOrg[]) =>
formatTable(integrations, INTEGRATION_COLUMNS),
schema: SentryIntegrationSchema,
Expand All @@ -61,8 +64,9 @@ const docs: OrgListCommandDocs = {
"Target specification:\n" +
" sentry integration list # auto-detect from DSN or config\n" +
" sentry integration list <org>/ # list all integrations in org (paginated)\n" +
" sentry integration list <org>/<proj> # list integrations in org (project context)\n" +
" sentry integration list <org>/<name> # integrations whose name or provider matches <name>\n" +
" sentry integration list <org> # list integrations in org\n\n" +
"`<name>` is a glob (`<org>/git*`) or text: exact or partial matches first, then close (fuzzy) matches. Name filters can't be combined with --cursor.\n\n" +
"Pagination:\n" +
" sentry integration list <org>/ -c next # fetch next page\n" +
" sentry integration list <org>/ -c prev # fetch previous page\n\n" +
Expand All @@ -80,6 +84,15 @@ const docs: OrgListCommandDocs = {
description: "Fetch the next page",
command: "sentry integration list my-org/ -c next",
},
{
description: "Only integrations whose name or provider matches a glob",
command: "sentry integration list 'my-org/git*'",
},
{
description:
"Integrations named like 'GitHub' (fuzzy when nothing matches exactly)",
command: "sentry integration list my-org/githb",
},
{
description: "Output as JSON",
command: "sentry integration list --json",
Expand Down
14 changes: 13 additions & 1 deletion packages/cli/src/commands/monitor/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const monitorListConfig: OrgListConfig<SentryMonitor, MonitorWithOrg> = {
listForOrg: (org) => listMonitors(org),
listPaginated: (org, opts) => listMonitorsPaginated(org, opts),
withOrg: (monitor, orgSlug) => ({ ...monitor, orgSlug }),
namesOf: (monitor) => [monitor.slug, monitor.name],
searchesNames: true,
displayTable: (monitors: MonitorWithOrg[]) =>
formatTable(monitors, MONITOR_COLUMNS),
schema: SentryMonitorSchema,
Expand All @@ -78,8 +80,9 @@ const docs: OrgListCommandDocs = {
"Target specification:\n" +
" sentry monitor list # auto-detect from DSN or config\n" +
" sentry monitor list <org>/ # list all monitors in org (paginated)\n" +
" sentry monitor list <org>/<proj> # list monitors in org (project context)\n" +
" sentry monitor list <org>/<name> # monitors whose slug or name matches <name>\n" +
" sentry monitor list <org> # list monitors in org\n\n" +
"`<name>` is a glob (`<org>/nightly-*`) or text: exact or partial matches first, then close (fuzzy) matches. Name filters can't be combined with --cursor.\n\n" +
"Pagination:\n" +
" sentry monitor list <org>/ -c next # fetch next page\n" +
" sentry monitor list <org>/ -c prev # fetch previous page\n\n" +
Expand All @@ -97,6 +100,15 @@ const docs: OrgListCommandDocs = {
description: "Fetch the next page",
command: "sentry monitor list my-org/ -c next",
},
{
description: "Only monitors whose slug or name matches a glob",
command: "sentry monitor list 'my-org/nightly-*'",
},
{
description:
"Monitors named like 'nightly' (fuzzy when nothing matches exactly)",
command: "sentry monitor list my-org/nigthly",
},
{ description: "Output as JSON", command: "sentry monitor list --json" },
],
};
Expand Down
Loading
Loading