{"id":37096971,"url":"https://github.com/redhat-cop/applier-cli","last_synced_at":"2026-01-14T11:55:45.653Z","repository":{"id":57565586,"uuid":"188459852","full_name":"redhat-cop/applier-cli","owner":"redhat-cop","description":null,"archived":true,"fork":false,"pushed_at":"2019-09-10T19:37:48.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-06-20T11:48:19.774Z","etag":null,"topics":["container-cop"],"latest_commit_sha":null,"homepage":"","language":"Go","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/redhat-cop.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}},"created_at":"2019-05-24T17:06:45.000Z","updated_at":"2023-11-20T14:48:39.000Z","dependencies_parsed_at":"2022-09-03T12:21:13.488Z","dependency_job_id":null,"html_url":"https://github.com/redhat-cop/applier-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-cop/applier-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Fapplier-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Fapplier-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Fapplier-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Fapplier-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-cop","download_url":"https://codeload.github.com/redhat-cop/applier-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Fapplier-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["container-cop"],"created_at":"2026-01-14T11:55:45.183Z","updated_at":"2026-01-14T11:55:45.639Z","avatar_url":"https://github.com/redhat-cop.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Applier-CLI\n\nApplier-CLI is a tool for initializing and working with [OpenShift-Applier](https://github.com/redhat-cop/openshift-applier) inventories.\n\n[![asciicast](https://asciinema.org/a/240606.svg)](https://asciinema.org/a/240606)\n\n## Installation\n\nOS X \u0026 Linux:\n\n```sh\ngo get github.com/redhat-cop/applier-cli\n```\n\n## Commands\n\nAll commands here are subcommands of the main `applier-cli` binary.\n\n---\n\n### init\n\nScaffolds an empty OpenShift-Applier project with the following structure:\n\n```\n[current directory]\n├── apply.yml\n├── files\n├── inventory\n│   ├── group_vars\n│   │   └── all.yml\n│   ├── hosts\n│   └── host_vars\n│       └── localhost.yml\n├── params\n├── roles\n│   └── [large OpenShift-Applier role with many files]\n├── requirements.yml\n└── templates\n```\n\n#### Usage\n\nThis command does not take any input\n\n#### Example\n\n```sh\n↪ applier-cli init\nInitialized empty openshift-applier inventory\nSuccessfully installed ansible-galaxy requirements\n```\n\n#### Notes\n\n:information_source: Applier-CLI uses the GitHub API to determine the latest release of OpenShift-Applier, and writes that version to the `requirements.yml` file.\n\n:information_source: Applier-CLI attempts to invoke `ansible-galaxy` to download the OpenShift-Applier role into the `roles` directory. If `ansible-galaxy` is unavailable, the `roles` directory will not be available.\n\n---\n\n### add\n\nAdds resources to the current OpenShift-Applier inventory. This command can source resources from files on the local machine, or from an existing OpenShift cluster that the user is authenticated to via the `oc` CLI. Resources which are of a kind other than `Template` can optionally be templatized. Template resources are added to the `templates` directory, and a corresponding parameters file is initialized in the `params` directory. Resources which are not templates are simply added to the `files` directory.\n\n#### Usage\n\nThis command requires either the `--from-cluster` (`-c`) or the `--from-file` (`-f`) flags, indicating where to find the resource to be added to the inventory.\n\nThis command can accept the `--make-template` (`-t`) flag, which will wrap any non-template resource in a template before adding it to the inventory.\n\nOptionally, the `--edit` (`-e`) flag can be passed, which opens the newly added resource in your default editor immediately after adding it to the inventory.\n\n#### Example\n\n```sh\n↪ applier-cli add --from-cluster deployment/test-deployment --make-template --edit\n\u003ceditor is invoked at this point\u003e\nTemplate added to the current inventory.\n```\n\n```sh\n↪ applier-cli add --from-file ~/project/some_resource.yml\nFile added to the current inventory.\n```\n\n#### Notes\n\n:information_source: If using the `--edit` flag, the path to your default editor should either be set as the environment variable `EDITOR`, or set as the `editor` key in a `$HOME/.applier-cli.yaml` file. If neither of these are set, the editor default to `vi`.\n\n:information_source: The `--edit` flag is particularly useful when used in combination with the `--make-template` flag, as the customization of parameters is likely desired when `--make-template` is used.\n\n---\n\n### get-latest-version\n\nDisplays the latest version of the OpenShift-Applier, as fetched by the GitHub Release API.\n\n#### Usage\n\nThis command does not take any input\n\n#### Example\n\n```sh\n↪ applier-cli get-latest-version\nv2.0.8\n```\n\n#### Notes\n\n:information_source: This command does not touch the fileysstem and does not require you to be in an OpenShift-Applier inventory to operate.\n\n---\n\n### run\n\nRuns the current inventory against the cluster that the local `oc` client is logged in to.\n\n#### Usage\n\nWith no flags set, `run` executes `ansible-playbook` on your local machine. There is also a `--docker` flag, which uses the OpenShift-Applier Docker container to run the playbook.\n\n#### Example\n\n```sh\n↪ applier-cli run\n\u003cansible-playbook output\u003e\n```\n\n```sh\n↪ applier-cli run --docker\n\u003cdocker output... which should also look like an ansible playbook\u003e\n```\n\n#### Notes\n\n:information_source: When the `--docker` flag is used, this command attempts to determine the current state of SELinux on the local machine. If SELinux is `enforcing`, this command adds`:z` to the Docker volume mount to ensure that filesystem permissions are correct.\n\n---\n\n## Release History\n\n* 0.0.1\n  * Work in progress\n\n## Meta\n\nDistributed under the Apache License, v2.0. See ``LICENSE`` for more information.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/redhat-cop/applier-cli/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-cop%2Fapplier-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-cop%2Fapplier-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-cop%2Fapplier-cli/lists"}