{"id":22511147,"url":"https://github.com/renderedtext/cli","last_synced_at":"2025-08-03T14:32:16.738Z","repository":{"id":56894781,"uuid":"97212304","full_name":"renderedtext/cli","owner":"renderedtext","description":"Semaphore Classic Command Line Interface","archived":false,"fork":false,"pushed_at":"2018-12-05T14:25:53.000Z","size":460,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-24T20:42:09.436Z","etag":null,"topics":["ci","cli","semaphore-ci","semaphore-open-source"],"latest_commit_sha":null,"homepage":"https://semaphoreci.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renderedtext.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-14T08:36:26.000Z","updated_at":"2022-05-06T01:46:19.000Z","dependencies_parsed_at":"2022-08-21T01:20:27.261Z","dependency_job_id":null,"html_url":"https://github.com/renderedtext/cli","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderedtext%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderedtext%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderedtext%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renderedtext%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renderedtext","download_url":"https://codeload.github.com/renderedtext/cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548583,"owners_count":17935226,"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":["ci","cli","semaphore-ci","semaphore-open-source"],"created_at":"2024-12-07T02:09:37.225Z","updated_at":"2024-12-07T02:09:37.888Z","avatar_url":"https://github.com/renderedtext.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semaphore Classic CLI\n\n__Note:__ This is a CLI for Semaphore Classic. If you are looking for Semaphore 2.0 CLI, visit \u003chttps://github.com/semaphoreci/cli\u003e.\n\n![Semaphore logo](https://d1dkupr86d302v.cloudfront.net/assets/application_bootstrap/layout/semaphore-logo-a6d954e176b6975b511f314a0cc808dc94a8030210077e3a6e904fbe69dc5354.svg)\n\n[![Build Status](https://semaphoreci.com/api/v1/renderedtext/cli/branches/master/badge.svg)](https://semaphoreci.com/renderedtext/cli)\n[![Gem Version](https://badge.fury.io/rb/sem.svg)](https://badge.fury.io/rb/sem)\n\nThe Semaphore Classic CLI is used to manage Semaphore projects from the command line.\n\nFor more info about Semaphore see \u003chttps://semaphoreci.com\u003e\n\n## Usage\n\nFirst, install the gem on your local machine:\n\n``` bash\n$ gem install sem\n```\n\nLogin to Semaphore:\n\n``` bash\n$ sem login --auth-token \u003cyour-auth-token\u003e\n```\n\nDisplay the help screen:\n\n``` txt\n$ sem help\n\nUsage: sem [command]\n\nCommand list, type sem help [command] for more details:\n\n  version         Check cli version\n  login           Log in to semaphore from the command line\n  logout          Log out from semaphore\n\n  orgs            Manage organizations\n  teams           Manage teams and team membership\n  shared-configs  Manage shared configurations\n  projects        Manage projects\n\n```\n\n## Issues\n\nFor problems directly related to the CLI, [add an issue on GitHub](https://github.com/renderedtext/cli/issues/new).\n\nFor other issues, [submit a support ticket](https://semaphoreci.com/support).\n\n[Contributors](https://github.com/renderedtext/cli/contributors).\n\n## Development\n\nDeveloping the CLI locally requires Ruby \u003e= 2.0. While developing please follow\nthe [CLI development guide](guides.md).\n\nTo run the CLI locally, use the `bundle exec sem`.\n\n#### Generating Docs\n\nFirst, generate a JSON structure of the CLI, by running:\n\n``` bash\n./bin/generate_json_structure\n```\n\nUse that structure to generate docs in the semaphore-docs-new repository.\n\n#### Semaphore Resource Name (SRN)\n\nSRN is a way of identifying Semaphore resources. This CLI uses SRNs as arguments\nfor all actions.\n\nFormats for individual resources are the following:\n\n- Organization: `organization_name`\n- Team: `organization_name/team_name`\n- Project: `organization_name/project_name`\n- Shared Configuration: `organization_name/shared_configuration_name`\n\n#### Using custom API URL\n\nCreate a file at `~/.sem/api_url` containing only the custom url.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenderedtext%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenderedtext%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenderedtext%2Fcli/lists"}