{"id":19359165,"url":"https://github.com/opslevel/cli","last_synced_at":"2025-09-03T13:07:57.884Z","repository":{"id":38185532,"uuid":"378479641","full_name":"OpsLevel/cli","owner":"OpsLevel","description":"The command line tool for interacting with OpsLevel","archived":false,"fork":false,"pushed_at":"2025-04-14T17:07:58.000Z","size":16012,"stargazers_count":6,"open_issues_count":7,"forks_count":3,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-14T18:24:31.187Z","etag":null,"topics":["cli","go","golang"],"latest_commit_sha":null,"homepage":"https://opslevel.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpsLevel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2021-06-19T18:27:59.000Z","updated_at":"2025-03-27T15:16:05.000Z","dependencies_parsed_at":"2023-09-21T22:37:42.327Z","dependency_job_id":"dd12c425-4e0a-4928-8700-10052d6a6031","html_url":"https://github.com/OpsLevel/cli","commit_stats":null,"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpsLevel%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpsLevel","download_url":"https://codeload.github.com/OpsLevel/cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250425456,"owners_count":21428568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","go","golang"],"created_at":"2024-11-10T07:14:16.515Z","updated_at":"2025-04-23T11:32:36.842Z","avatar_url":"https://github.com/OpsLevel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/OpsLevel/cli/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/OpsLevel/cli.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/OpsLevel/cli\"\u003e\n        \u003cimg src=\"https://goreportcard.com/badge/github.com/OpsLevel/cli\" alt=\"Go Report Card\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://GitHub.com/OpsLevel/cli/releases/\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/release/OpsLevel/cli\" alt=\"Release\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://masterminds.github.io/stability/experimental.html\"\u003e\n        \u003cimg src=\"https://masterminds.github.io/stability/experimental.svg\" alt=\"Stability: Experimental\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/cli/graphs/contributors\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/contributors/OpsLevel/cli\" alt=\"Contributors\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/cli/pulse\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/commit-activity/m/OpsLevel/cli\" alt=\"Activity\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/OpsLevel/cli/releases\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/downloads/OpsLevel/cli/total\" alt=\"Downloads\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[![Overall](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fapp.opslevel.com%2Fapi%2Fservice_level%2FEaWapOq9VQj5FvymQEgCPNJcbF-TOibHn89Arw7d_OY)](https://app.opslevel.com/services/opslevel_cli/maturity-report)\n\n# The CLI for interacting with [OpsLevel](https://www.opslevel.com/)\n\n### Prerequisite\n\n- [jq version 1.7](https://stedolan.github.io/jq/download/)\n- [OpsLevel API Token](https://app.opslevel.com/api_tokens)\n  - Generate token by clicking `Create API Token` and providing a description\n  - Export the API Token for cli access:\n    ```sh\n    \u003e export OPSLEVEL_API_TOKEN=\u003capi_token\u003e\n    ```\n\n### Installation\n\n#### MacOS\n\n```sh\nbrew install opslevel/tap/cli\n```\n\n#### Curl Download\n\n```sh\n# Note: you can also run without `sudo` and move the binary yourself\ncurl -sLS https://raw.githubusercontent.com/OpsLevel/cli/main/install.sh | sudo sh\n```\n\n\u003c!--\n#### Deb\n\n```sh\nsudo apt-get install apt-transport-https\nwget -qO - https://opslevel.github.io/cli-repo/deb/public.key | sudo apt-key add -\necho deb https://opslevel.github.io/cli-repo/deb [CODE_NAME] main | sudo tee -a /etc/apt/sources.list\nsudo apt-get update\nsudo apt-get install opslevel\n```\n\n#### RPM\n\n```sh\ncat \u003c\u003c EOF \u003e /etc/yum.repos.d/opslevel.repo\n[opslevel]\nname=opslevel cli repository\nbaseurl=https://opslevel.github.io/cli-repo/rpm/releases/$releasever/$basearch/\ngpgcheck=0\nenabled=1\nEOF\nsudo yum -y update\nsudo yum -y install opslevel\n```\n--\u003e\n\n#### Docker\n\nThe docker container is hosted on [AWS Public ECR](https://gallery.ecr.aws/opslevel/cli)\n\n### Quickstart\n\n```sh\n# Create\n\u003e opslevel create category Chaos\nZ2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY8\n# Get\n\u003e opslevel get category Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY8\n{\n  \"id\": \"Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY8\",\n  \"Name\": \"Chaos\"\n}\n# List\n\u003e opslevel list category\nNAME            ID                                    \nPerformance     Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY1  \nInfrastructure  Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY2  \nObservability   Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY3  \nReliability     Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY4  \nScalability     Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY5  \nSecurity        Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY6  \nQuality         Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY7  \nChaos           Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY8  \n# Delete\n\u003e opslevel delete category Z2lkOi8vb3BzbGV2ZWwvQ2F0ZWdvcnkvOTY8\n```\n\n### Enable shell autocompletion\n\nWe have the ability to generate autocompletion scripts for the shell's `bash`, `zsh`, `fish` and `powershell`.  To generate \nthe completion script for macOS zsh:\n\n```sh\nopslevel completion zsh \u003e /usr/local/share/zsh/site-functions/_opslevel\n```\n\nMake sure you have `zsh` completion turned on by having the following as one of the first few lines in your `.zshrc` file\n\n```sh\necho \"autoload -U compinit; compinit\" \u003e\u003e ~/.zshrc\n```\n\n\u003c!--\n### JSON-Schema\nTODO\n--\u003e\n\n## Troubleshooting\n\n### List all my tier 1 services\n\n```sh\n\u003e opslevel list services -o json | jq '[.[] | if .tier.Alias == \"tier_1\" then {(.name) : (.tier.Alias)} else empty end]' \n[\n  {\n    \"Catalog Service\": \"tier_1\"\n  },\n  {\n    \"Shopping Cart Service\": \"tier_1\"\n  },\n  {\n    \"Website Aggregator\": \"tier_1\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopslevel%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopslevel%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopslevel%2Fcli/lists"}