{"id":18278759,"url":"https://github.com/terminus-plugin-project/terminus-replica-plugin","last_synced_at":"2025-04-09T04:41:13.351Z","repository":{"id":43093723,"uuid":"83527167","full_name":"terminus-plugin-project/terminus-replica-plugin","owner":"terminus-plugin-project","description":"Replica - A Terminus plugin that exposes database replica connection details.","archived":false,"fork":false,"pushed_at":"2022-03-18T18:42:34.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"1.x","last_synced_at":"2025-02-14T22:53:04.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/terminus-plugin-project.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":"2017-03-01T07:47:53.000Z","updated_at":"2022-03-18T18:42:02.000Z","dependencies_parsed_at":"2022-08-19T12:10:10.185Z","dependency_job_id":null,"html_url":"https://github.com/terminus-plugin-project/terminus-replica-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-replica-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-replica-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-replica-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terminus-plugin-project%2Fterminus-replica-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terminus-plugin-project","download_url":"https://codeload.github.com/terminus-plugin-project/terminus-replica-plugin/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980825,"owners_count":21027803,"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-11-05T12:25:59.623Z","updated_at":"2025-04-09T04:41:13.333Z","avatar_url":"https://github.com/terminus-plugin-project.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminus Plugin: Replica\n\nReplica is a Terminus plugin that decorates the terminus `connection:info`\ncommand with additional connection info related to any database replicas you\nmay have enabled for your site environments.\n\n## Installation\nFor installation help, see [Manage Plugins](https://pantheon.io/docs/terminus/plugins/).\n\n```sh\nmkdir -p ~/.terminus/plugins\ncomposer create-project -d ~/.terminus/plugins terminus-plugin-project/terminus-replica-plugin:~1\n```\n\n## Usage\n\nIf you pull connection info for an environment that has an associated slave\ndatabase, you will see additional details:\n\n```sh\nterminus connection:info \u003csite\u003e.\u003cenv\u003e\n```\n\n...Which might respond with:\n\n```\n ----------------------- ---------------------------------------------------------------------------------------------------------------------------------------\n  SFTP Command            sftp -o Port=2222 live.aaaaaaaa-0000-bbbb-1111-cdef2345ghij@appserver.live.aaaaaaaa-0000-bbbb-1111-cdef2345ghij.drush.in\n  MySQL Command           mysql -u pantheon -p12a345b678cd9012efgh345i67890123 -h dbserver.live.aaaaaaaa-0000-bbbb-1111-cdef2345ghij.drush.in -P 10206 pantheon\n  Redis Command           redis-cli -h 13.37.13.37 -p 10000 -a aa1b23456cde789fgh0ij1234k56l7m8\n  MySQL Replica Command   mysql -u pantheon -p01ab234c567d8e90fgh1i23j4kl5678m -h 133.71.33.7 -P 11258 pantheon\n ----------------------- ---------------------------------------------------------------------------------------------------------------------------------------\n```\n\nAnd, as usual, you can specify the field you want:\n\n```sh\nterminus connection:info my-site.live --field=mysql_replica_command\n```\n\n...Which might return:\n\n```\nmysql -u pantheon -p01ab234c567d8e90fgh1i23j4kl5678m -h 133.71.33.7 -P 11258 pantheon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterminus-plugin-project%2Fterminus-replica-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterminus-plugin-project%2Fterminus-replica-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterminus-plugin-project%2Fterminus-replica-plugin/lists"}