{"id":20968191,"url":"https://github.com/mvxt/circleci-demo-context-cli","last_synced_at":"2026-02-15T07:33:23.986Z","repository":{"id":87875354,"uuid":"245490446","full_name":"mvxt/circleci-demo-context-cli","owner":"mvxt","description":"Repository showcasing usage of CircleCI's new context CLI functionality","archived":false,"fork":false,"pushed_at":"2020-05-13T20:47:51.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T10:30:53.121Z","etag":null,"topics":["cicd","circleci","circleci-cli","circleci-demos","circleci2","context","continuous-delivery","continuous-deployment","continuous-integration","demo","keys","secrets","tokens"],"latest_commit_sha":null,"homepage":"https://circleci.com/changelog#manage-contexts-with-the-cli","language":null,"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/mvxt.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}},"created_at":"2020-03-06T18:27:31.000Z","updated_at":"2022-08-19T18:00:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"b69e16b2-61a9-490b-889c-1647c229f499","html_url":"https://github.com/mvxt/circleci-demo-context-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mvxt/circleci-demo-context-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvxt%2Fcircleci-demo-context-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvxt%2Fcircleci-demo-context-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvxt%2Fcircleci-demo-context-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvxt%2Fcircleci-demo-context-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvxt","download_url":"https://codeload.github.com/mvxt/circleci-demo-context-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvxt%2Fcircleci-demo-context-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29472880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cicd","circleci","circleci-cli","circleci-demos","circleci2","context","continuous-delivery","continuous-deployment","continuous-integration","demo","keys","secrets","tokens"],"created_at":"2024-11-19T03:06:33.891Z","updated_at":"2026-02-15T07:33:23.962Z","avatar_url":"https://github.com/mvxt.png","language":null,"readme":"# CircleCI Contexts CLI Demo [![CircleCI](https://circleci.com/gh/mvxt/circleci-demo-context-cli.svg?style=shield\u0026circle-token=5a49c2c32b4bf0e25f4c911dd0477c280b2e72a1)](https://circleci.com/gh/mvxt/circleci-demo-context-cli)\n\nRepository showcasing usage of CircleCI's new context CLI functionality.\n\n## Prerequisites for this example project\n- Need to have the following env variables set, either project-level or context-level:\n\nVariable             | Description\n---------------------|------------------------------------------------------------------------------\n`VCS`                | Either \"github\" or \"bitbucket\"\n`CIRCLECI_CLI_TOKEN` | A personal API token for CircleCI. User must have org-level/admin permissions\n\n## What's happening in this example config?\n1. We use the [CircleCI CLI Orb](https://circleci.com/orbs/registry/orb/circleci/circleci-cli) to install the client-side CLI and setup auth with the `CIRCLECI_CLI_TOKEN` variable.\n\n```yaml\norbs:\n  circleci-cli: circleci/circleci-cli@0.1.7\n\n# ...\njobs:\n  context-cli-test:\n    # ...\n    steps:\n      - circleci-cli/install\n      - circleci-cli/setup\n```\n\n2. Then we demonstrate the Context CLI functionality in multiple steps. Here are the commands showcased:\n\nCommand                                                  | Description\n---------------------------------------------------------|-------------------------------------------------------------------\n`circleci context list $VCS $PROJECT_USERNAME`           | Lists all contexts for this organization (e.g. \"project username\")\n`circleci context create $VCS $PROJECT_USERNAME $CONTEXT_NAME` | Creates a new context under this organization\n`circleci context delete -f $VCS $PROJECT_USERNAME $CONTEXT_NAME` | Deletes a context under this org. Normally you can't delete contexts that contain keys, but `-f` will override. **Use with caution**, delete keys and contexts cannot be recovered.\n`circleci context show $VCS $PROJECT_USERNAME $CONTEXT_NAME` | Shows all of the keys (w/ masked values) of context\n`circleci context store-secret $VCS $PROJECT_USERNAME $CONTEXT_NAME $KEY_NAME` | Creates new KV pair in context\n`circleci context remove-secret $VCS $PROJECT_USERNAME $CONTEXT_NAME $KEY_NAME` | Deletes key in context\n\n`$VCS` you should have set as a prerequisite, and `$CIRCLE_PROJECT_USERNAME` refers to the org name owning the current project.\n\nRun `circleci context` or `circleci context -h` for more help and information on available commands.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvxt%2Fcircleci-demo-context-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvxt%2Fcircleci-demo-context-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvxt%2Fcircleci-demo-context-cli/lists"}