Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ List installed integrations

| Argument | Description |
|----------|-------------|
| `[<org/project>]` | &lt;org&gt;/ (all projects), &lt;org&gt;/&lt;project&gt;, or &lt;project&gt; (search) |
| `[<org/project>]` | &lt;org&gt;/ (all), &lt;org&gt;/&lt;name&gt; or &lt;name&gt; (a project, else matching names), or a name glob (&lt;org&gt;/web-*) |

**Flags:**
- `-n, --limit <value> - Maximum number of integrations to list - (default: "25")`
Expand Down Expand Up @@ -50,6 +50,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 @@ -52,7 +52,7 @@ List cron monitors

| Argument | Description |
|----------|-------------|
| `[<org/project>]` | &lt;org&gt;/ (all projects), &lt;org&gt;/&lt;project&gt;, or &lt;project&gt; (search) |
| `[<org/project>]` | &lt;org&gt;/ (all), &lt;org&gt;/&lt;name&gt; or &lt;name&gt; (a project, else matching names), or a name glob (&lt;org&gt;/web-*) |

**Flags:**
- `-n, --limit <value> - Maximum number of monitors to list - (default: "25")`
Expand Down Expand Up @@ -84,6 +84,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 @@ -82,7 +82,7 @@ List projects

| Argument | Description |
|----------|-------------|
| `[<org/project>]` | &lt;org&gt;/ (all projects), &lt;org&gt;/&lt;project&gt;, or &lt;project&gt; (search) |
| `[<org/project>]` | &lt;org&gt;/ (all), &lt;org&gt;/&lt;name&gt; or &lt;name&gt; (a project, else matching names), or a name glob (&lt;org&gt;/web-*) |

**Flags:**
- `-n, --limit <value> - Maximum number of projects to list - (default: "25")`
Expand All @@ -105,6 +105,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

# Find a project across organizations
sentry project list frontend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ List repositories

| Argument | Description |
|----------|-------------|
| `[<org/project>]` | &lt;org&gt;/ (all projects), &lt;org&gt;/&lt;project&gt;, or &lt;project&gt; (search) |
| `[<org/project>]` | &lt;org&gt;/ (all), &lt;org&gt;/&lt;name&gt; or &lt;name&gt; (a project, else matching names), or a name glob (&lt;org&gt;/web-*) |

**Flags:**
- `-n, --limit <value> - Maximum number of repositories to list - (default: "25")`
Expand Down Expand Up @@ -52,6 +52,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 @@ -19,7 +19,7 @@ List teams

| Argument | Description |
|----------|-------------|
| `[<org/project>]` | &lt;org&gt;/ (all projects), &lt;org&gt;/&lt;project&gt;, or &lt;project&gt; (search) |
| `[<org/project>]` | &lt;org&gt;/ (all), &lt;org&gt;/&lt;name&gt; or &lt;name&gt; (a project, else matching names), or a name glob (&lt;org&gt;/web-*) |

**Flags:**
- `-n, --limit <value> - Maximum number of teams to list - (default: "25")`
Expand Down Expand Up @@ -50,6 +50,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
13 changes: 13 additions & 0 deletions 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 @@ -58,6 +61,7 @@ const docs: OrgListCommandDocs = {
fullDescription:
"List integrations installed on an organization (GitHub, GitLab, Slack, Jira, ...).\n\n" +
"Includes integrations that are disabled or pending deletion.\n\n" +
"`<org>/<name>` lists integrations whose name or provider matches `<name>`, a glob (`<org>/git*`) or text: exact or partial matches first, then close (fuzzy) matches. A bare `<name>` that is no project does the same in the detected organizations. Name filters can't be combined with --cursor.\n\n" +
"Alias: `sentry integrations` → `sentry integration list`",
examples: [
{
Expand All @@ -72,6 +76,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
12 changes: 12 additions & 0 deletions 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 @@ -75,6 +77,7 @@ const docs: OrgListCommandDocs = {
brief: "List cron monitors",
fullDescription:
"List cron monitors in an organization.\n\n" +
"`<org>/<name>` lists monitors whose slug or name matches `<name>`, a glob (`<org>/nightly-*`) or text: exact or partial matches first, then close (fuzzy) matches. A bare `<name>` that is no project does the same in the detected organizations. Name filters can't be combined with --cursor.\n\n" +
"Alias: `sentry monitors` → `sentry monitor list`",
examples: [
{
Expand All @@ -89,6 +92,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