{"id":13764232,"url":"https://github.com/anchore/anchore-cli","last_synced_at":"2025-05-10T19:30:47.194Z","repository":{"id":39636541,"uuid":"102535562","full_name":"anchore/anchore-cli","owner":"anchore","description":"Simple command-line client to the Anchore Engine service","archived":true,"fork":false,"pushed_at":"2024-07-10T17:45:18.000Z","size":653,"stargazers_count":114,"open_issues_count":17,"forks_count":55,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-17T00:33:33.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/anchore.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.rst","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":"2017-09-05T22:27:17.000Z","updated_at":"2024-10-08T01:13:22.000Z","dependencies_parsed_at":"2024-06-20T14:46:29.234Z","dependency_job_id":"840c958e-95ce-4a7e-80b8-b034e3e5c567","html_url":"https://github.com/anchore/anchore-cli","commit_stats":null,"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fanchore-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fanchore-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fanchore-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anchore%2Fanchore-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anchore","download_url":"https://codeload.github.com/anchore/anchore-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253470601,"owners_count":21913701,"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":[],"created_at":"2024-08-03T16:00:17.050Z","updated_at":"2025-05-10T19:30:46.758Z","avatar_url":"https://github.com/anchore.png","language":"Python","funding_links":[],"categories":["Image","Инструменты"],"sub_categories":["[Anchore](https://anchore.com/enterprise/)","Сканеры Docker образов"],"readme":"Important\n========\n\n**As of 2024, Anchore CLI is no longer maintained.** There will be no future versions released. Users are advised to use AnchoreCTL when interacting with Anchore Enterprise.\n\nFor users interested in the supported commercial solution for container scanning and complaiance, schedule a demo to see Anchore Enterprise's broad set of enterprise capabilities including SBOM management, vulnerability management, and compliance management.\n\n\nOverview\n========\n\nThe Anchore CLI provides a command line interface on top of the `Anchore Engine \u003chttps://github.com/anchore/anchore-engine\u003e`_ REST API.\n\nUsing the Anchore CLI users can manage and inspect images, policies, subscriptions and registries for the following:\n\n**Supported Operating Systems**\n\n* Alpine\n* Amazon Linux 2\n* CentOS\n* Debian\n* Google Distroless\n* Oracle Linux\n* Red Hat Enterprise Linux\n* Red Hat Universal Base Image (UBI)\n* Ubuntu\n\n\n**Supported Packages**\n\n* GEM\n* Java Archive (jar, war, ear)\n* NPM\n* Python (PIP)\n\n\nInstalling Anchore CLI from source\n==================================\n\nThe Anchore CLI can be installed from source using the Python pip utility\n\n.. code::\n\n    git clone https://github.com/anchore/anchore-cli\n    cd anchore-cli\n    pip install --user --upgrade .\n\nOr can be installed from the installed form source from the Python `PyPI \u003chttps://pypi.python.org/pypi\u003e`_ package repository.\n\nInstalling Anchore CLI on CentOS and Red Hat Enterprise Linux\n=============================================================\n\n.. code::\n\n    yum install epel-release\n    yum install python-pip\n    pip install anchorecli\n\nInstalling Anchore CLI on Debian and Ubuntu\n===========================================\n\n.. code::\n\n    apt-get update\n    apt-get install python-pip\n    pip install anchorecli\n    Note make sure ~/.local/bin is part of your PATH or just export it directly: export PATH=\"$HOME/.local/bin/:$PATH\"\n\nInstalling Anchore CLI on Mac OS / OS X\n===========================================\n\nUse Python's `pip` package manager:\n\n.. code::\n\n    sudo easy_install pip\n    pip install --user anchorecli\n    export PATH=${PATH}:${HOME}/Library/Python/2.7/bin\n\nTo ensure `anchore-cli` is readily available in subsequent terminal sessions, remember to add that last line to your shell profile (`.bash_profile` or equivalent).\n\nTo update `anchore-cli` later:\n\n.. code::\n\n    pip install --user --upgrade anchorecli\n\n\nConfiguring the Anchore CLI\n===========================\n\nBy default the Anchore CLI will try to connect to the Anchore Engine at ``http://localhost/v1`` with no authentication.\nThe username, password and URL for the server can be passed to the Anchore CLI as command line arguments.\n\n.. code::\n\n    --u   TEXT   Username     eg. admin\n    --p   TEXT   Password     eg. foobar\n    --url TEXT   Service URL  eg. http://localhost:8228/v1\n\nRather than passing these parameters for every call to the cli they can be stores as environment variables.\n\n.. code::\n\n    ANCHORE_CLI_URL=http://myserver.example.com:8228/v1\n    ANCHORE_CLI_USER=admin\n    ANCHORE_CLI_PASS=foobar\n\nCommand line examples\n=====================\n\nAdd an image to the Anchore Engine\n\n.. code::\n\n    anchore-cli image add docker.io/library/debian:latest\n\nWait for an image to transition to ``analyzed``\n\n.. code::\n\n    anchore-cli image wait docker.io/library/debian:latest\n\nList images analyzed by the Anchore Engine\n\n.. code::\n\n    anchore-cli image list\n\nGet summary information for a specified image\n\n.. code::\n\n    anchore-cli image get docker.io/library/debian:latest\n\nPerform a vulnerability scan on an image\n\n.. code::\n\n   anchore-cli image vuln docker.io/library/debian:latest os\n\nPerform a policy evaluation on an image\n\n.. code::\n\n   anchore-cli evaluate check docker.io/library/debian:latest --detail\n\nList operating system packages present in an image\n\n.. code::\n\n    anchore-cli image content docker.io/library/debian:latest os\n\nSubscribe to receive webhook notifications when new CVEs are added to an update\n\n.. code::\n\n    anchore-cli subscription activate vuln_update docker.io/library/debian:latest\n\nMore Information\n================\n\nFor further details on use of the Anchore CLI with the Anchore Engine please refer to `Anchore Engine \u003chttps://github.com/anchore/anchore-engine\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Fanchore-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanchore%2Fanchore-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanchore%2Fanchore-cli/lists"}