{"id":29889995,"url":"https://github.com/opsmatters/newrelic-command","last_synced_at":"2026-07-22T07:32:55.825Z","repository":{"id":144531644,"uuid":"120037889","full_name":"opsmatters/newrelic-command","owner":"opsmatters","description":"Java library that allows New Relic Monitoring and Alerting configuration operations to be executed from the command line.","archived":false,"fork":false,"pushed_at":"2018-04-13T21:59:38.000Z","size":270,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-04T23:04:19.820Z","etag":null,"topics":["alerts","java","java-library","monitoring","newrelic","opsmatters"],"latest_commit_sha":null,"homepage":"http://opsmatters.github.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opsmatters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-02-02T22:23:33.000Z","updated_at":"2018-05-23T18:58:54.000Z","dependencies_parsed_at":"2023-07-10T23:00:26.140Z","dependency_job_id":null,"html_url":"https://github.com/opsmatters/newrelic-command","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/opsmatters/newrelic-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmatters%2Fnewrelic-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmatters%2Fnewrelic-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmatters%2Fnewrelic-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmatters%2Fnewrelic-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsmatters","download_url":"https://codeload.github.com/opsmatters/newrelic-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsmatters%2Fnewrelic-command/sbom","scorecard":{"id":711137,"data":{"date":"2025-08-11","repo":{"name":"github.com/opsmatters/newrelic-command","commit":"153a588cd489aa5696d1ba77d0bdfd51aee22f14"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-mvr2-9pj6-7w5j","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-2qrg-x229-3v8q","Warn: Project is vulnerable to: GHSA-65fg-84f6-3jq3","Warn: Project is vulnerable to: GHSA-f7vh-qwp3-x37m","Warn: Project is vulnerable to: GHSA-fp5r-v3w9-4333","Warn: Project is vulnerable to: GHSA-w9p3-5cr8-m3jj","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-rvwf-54qp-4r6v","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j","Warn: Project is vulnerable to: GHSA-9339-86wc-4qgf"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T08:14:03.382Z","repository_id":144531644,"created_at":"2025-08-22T08:14:03.383Z","updated_at":"2025-08-22T08:14:03.383Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35753456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alerts","java","java-library","monitoring","newrelic","opsmatters"],"created_at":"2025-07-31T22:23:05.503Z","updated_at":"2026-07-22T07:32:55.820Z","avatar_url":"https://github.com/opsmatters.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![opsmatters](https://i.imgur.com/VoLABc1.png)\n\n# New Relic Command Line\n[![Build Status](https://travis-ci.org/opsmatters/newrelic-command.svg?branch=master)](https://travis-ci.org/opsmatters/newrelic-command)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.opsmatters/newrelic-command/badge.svg?style=blue)](https://maven-badges.herokuapp.com/maven-central/com.opsmatters/newrelic-command)\n[![Javadocs](http://javadoc.io/badge/com.opsmatters/newrelic-command.svg)](http://javadoc.io/doc/com.opsmatters/newrelic-command)\n\nJava library that allows New Relic Monitoring and Alerting configuration operations to be executed from a command line.\nThe library includes over 90 operations covering Alerts, Applications, Key Transactions, Deployments, Servers, Plugins, Monitors and Labels. \nIt provides a set of tools to simplify or automate the configuration of New Relic Monitoring and Alerting.\n\n## Examples\n\nThe following scripts can be found in the \"bin\" directory of the distribution:\n* new_relic_exec.sh (for Linux)\n* new_relic_exec.bat (for Windows)\n\nTo execute a command provide the operation required as the **first** parameter:\n```\n\u003e$ new_relic_exec.sh create_alert_policy -key \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\" -name my-policy -ip PER_POLICY\n```\nA message similar to the following is displayed if the command completes successfully:\n```\n2018-02-05 02:41:40:941 INFO Created alert policy: 187641 - my-policy\n```\n\nTo see the options for a particular command:\n```\n\u003e$ new_relic_exec.sh create_alert_policy -h\n```\nThis produces a listing similar to:\n```\nusage: create_alert_policy\n -h,--help                        Prints a usage statement\n -ip,--incident_preference \u003carg\u003e  The incident preference of the alert policy.\n                                  Optional, defaults to PER_POLICY.\n -x,--x_api_key \u003carg\u003e             The New Relic API key for the account or user\n -n,--name \u003carg\u003e                  The name of the alert policy\n -v,--verbose                     Enables verbose logging messages\n```\n\nTo see the complete list of commands supported:\n```\n\u003e$ new_relic_exec.sh\n```\n\nThe complete list of commands supported is:\n\n### Alert Channels\n* create_campfire_channel\n* create_email_channel\n* create_hipchat_channel\n* create_opsgenie_channel\n* create_pagerduty_channel\n* create_slack_channel\n* create_user_channel\n* create_victorops_channel\n* delete_alert_channel\n* delete_alert_channels\n* list_alert_channels\n\n### Alert Policies\n* create_alert_policy\n* delete_alert_policy\n* delete_alert_policies\n* list_alert_policies\n\n### Alert Conditions\n* create_alert_condition\n* create_nrql_alert_condition\n* create_synthetics_alert_condition\n* create_external_service_alert_condition\n* create_plugins_alert_condition\n* create_infra_metric_alert_condition\n* create_infra_host_alert_condition\n* create_infra_process_alert_condition\n* delete_alert_condition\n* delete_alert_conditions\n* delete_nrql_alert_condition\n* delete_nrql_alert_conditions\n* delete_synthetics_alert_condition\n* delete_synthetics_alert_conditions\n* delete_external_service_alert_condition\n* delete_external_service_alert_conditions\n* delete_plugins_alert_condition\n* delete_plugins_alert_conditions\n* delete_infra_alert_condition\n* delete_infra_alert_conditions\n* list_alert_conditions\n* list_nrql_alert_conditions\n* list_synthetics_alert_conditions\n* list_external_service_alert_conditions\n* list_plugins_alert_conditions\n* list_infra_alert_conditions\n\n### Alert Policy Channels\n* add_alert_policy_channel\n* remove_alert_policy_channel\n* list_alert_policy_channels\n\n### Alert Entity Conditions\n* add_application_alert_condition\n* add_browser_application_alert_condition\n* add_mobile_application_alert_condition\n* add_server_alert_condition\n* add_key_transaction_alert_condition\n* add_plugin_alert_condition\n* remove_application_alert_condition\n* remove_browser_application_alert_condition\n* remove_mobile_application_alert_condition\n* remove_server_alert_condition\n* remove_key_transaction_alert_condition\n* remove_plugin_alert_condition\n* list_application_alert_conditions\n* list_browser_application_alert_conditions\n* list_mobile_application_alert_conditions\n* list_server_alert_conditions\n* list_key_transaction_alert_conditions\n* list_plugin_alert_conditions\n\n### Applications\n* delete_application\n* list_applications\n* list_browser_applications\n* list_mobile_applications\n* list_key_transactions\n\n### Deployments\n* create_deployment\n* delete_deployment\n* list_deployments\n\n### Monitors\n* create_ping_monitor\n* create_simple_browser_monitor\n* create_scripted_browser_monitor\n* create_scripted_api_monitor\n* update_monitor_script\n* delete_monitor\n* list_monitors\n\n### Servers\n* delete_server\n* list_servers\n\n### Plugins\n* list_plugins\n\n### Labels\n* create_label\n* create_monitor_label\n* delete_label\n* delete_monitor_label\n* list_labels\n* list_label_monitors\n\n### Dashboards\n* delete_dashboard\n* list_dashboards\n\n### Users\n* list_users\n\nOther commands can be included on request.\n\n## Prerequisites\n\nA New Relic account with an Admin user.\nThe user needs to generate an [Admin API Key](https://docs.newrelic.com/docs/apis/rest-api-v2/getting-started/api-keys) \nto provide read-write access via the [New Relic REST APIs](https://api.newrelic.com).\nThe Admin API Key is referenced in the documentation as the parameter \"YOUR_API_KEY\".\n\n## Installing\n\nFirst clone the repository using:\n```\n\u003e$ git clone https://github.com/opsmatters/newrelic-command.git\n\u003e$ cd newrelic-command\n```\n\nTo compile the source code, run all tests, and generate all artefacts (including sources, javadoc, etc):\n```\nmvn package \n```\n\n## Running the tests\n\nTo execute the unit tests:\n```\nmvn clean test \n```\n\nThe following tests are included:\n\n* TBC\n\n## Deployment\n\nThe build artefacts are hosted in The Maven Central Repository. \n\nAdd the following dependency to include the artefact within your project:\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.opsmatters\u003c/groupId\u003e\n  \u003cartifactId\u003enewrelic-command\u003c/artifactId\u003e\n  \u003cversion\u003e1.2.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Built With\n\n* [newrelic-api](https://github.com/opsmatters/newrelic-api) - Java client library for the New Relic Monitoring and Alerting REST APIs\n* [Commons CLI](http://commons.apache.org/proper/commons-cli/) - Provides an API for parsing command line options passed to programs\n* [Maven](https://maven.apache.org/) - Dependency Management\n* [JUnit](http://junit.org/) - Unit testing framework\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nThis project use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/opsmatters/opsmatters-core/tags). \n\n## Authors\n\n* **Gerald Curley** - *Initial work* - [opsmatters](https://github.com/opsmatters)\n\nSee also the list of [contributors](https://github.com/opsmatters/opsmatters-core/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the terms of the [Apache license 2.0](https://www.apache.org/licenses/LICENSE-2.0.html).\n\n\u003csub\u003eCopyright (c) 2018 opsmatters\u003c/sub\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsmatters%2Fnewrelic-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsmatters%2Fnewrelic-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsmatters%2Fnewrelic-command/lists"}