Skip to content

Commit

Permalink
feat(crons): Add CLI environment check-in docs (#7504)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored Jul 25, 2023
1 parent cd2301a commit 95ffa13
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/docs/product/crons/getting-started/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ sentry-cli monitors run my-monitor-slug -- node path/to/file.js

### Specifying Monitor Environments (Optional)

<Alert level="info">
The `sentry-cli` doesn't currently support the ability to specify monitor
environment for check-ins.
</Alert>
If your cron monitor runs in multiple environments you can use the `-e` flag to specify which [Monitor Environment](/product/crons/job-monitoring/#multiple-environments) to send check-ins to.

```bash {tabTitle: Node.JS}
sentry-cli monitors run -e dev my-monitor-slug -- node path/to/file.js
```

1 comment on commit 95ffa13

@vercel
Copy link

@vercel vercel bot commented on 95ffa13 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs.sentry.dev
sentry-docs-git-master.sentry.dev
docs.sentry.io

Please sign in to comment.