{"id":24024919,"url":"https://github.com/nadams/go-matrixcli","last_synced_at":"2025-04-16T04:24:41.311Z","repository":{"id":64302248,"uuid":"241411844","full_name":"nadams/go-matrixcli","owner":"nadams","description":"Interact with matrix servers from the cli","archived":false,"fork":false,"pushed_at":"2024-03-21T05:14:09.000Z","size":79,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T04:51:14.347Z","etag":null,"topics":["go","matrix","matrix-client"],"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/nadams.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-02-18T16:33:53.000Z","updated_at":"2024-05-21T09:26:32.000Z","dependencies_parsed_at":"2024-06-20T03:22:56.934Z","dependency_job_id":null,"html_url":"https://github.com/nadams/go-matrixcli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadams%2Fgo-matrixcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadams%2Fgo-matrixcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadams%2Fgo-matrixcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadams%2Fgo-matrixcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nadams","download_url":"https://codeload.github.com/nadams/go-matrixcli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249194691,"owners_count":21228038,"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":["go","matrix","matrix-client"],"created_at":"2025-01-08T15:36:14.994Z","updated_at":"2025-04-16T04:24:41.276Z","avatar_url":"https://github.com/nadams.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matrixcli\nSend and receive messages from a matrix server.\n\n- [x] Send messages\n- [x] Multiple account/server support\n- [ ] Tail messages\n- [ ] Filter incoming messages\n- [ ] Join/leave rooms\n\n## Setup \n\nSimply log into a homeserver.\n\n```sh\n$ matrixcli accounts login https://chat.mydomain.com\n```\n\nCommands that deal with a server need an account to work with. By default the program will select the \"current\" account to work with. You can set the current account by looking below. If you wish to use a different account without changing the current accout, pass in the `--account \u003cname\u003e` flag. The name refers to the account name seen in the account list.\n\n## List Accounts\n\n```sh\n$ matrixcli accounts list\n\n+------------------+---------------------------+-------------------------------------+---------+\n| NAME             | HOMESERVER                | USERID                              | CURRENT |\n+------------------+---------------------------+-------------------------------------+---------+\n| my-account       | https://chat.mydomain.com | @my-account:chat.mydomain.com       |         |\n| my-other-account | https://chat.mydomain.com | @my-other-account:chat.mydomain.com | *       |\n+------------------+---------------------------+-------------------------------------+---------+\n```\n\n## Set Current Account\n```sh\n$ matrixcli account select my-account\n```\n\n## Remove Account\n\n```sh\n$ matrixcli accounts remove my-account\n```\n\n## Send Messages\n\nSimple message\n```sh\n$ matrixcli send '!someid:chat.mydomain.com' 'my message'\n```\n\nPiped from stdin\n```sh\n$ mycmd | matrixcli send '!someid:chat.mydomain.com'\n```\n\nMessage with title\n```sh\n$ cmd-with-long-output | matrixcli send '!someid:chat.mydomain.com' --title 'Backup Stuff'\n```\n\n![Rich Text](.images/rich_text.png)\n\nChannel aliases are supported\n```sh\n$ matrixcli send '#mychannel:chat.mydomain.com' 'my msg'\n```\n\nFull channel ids are optional\n```sh\n$ matrixcli send '#mychannel' 'my msg'\n\n$ matrixcli send '!someid' 'my msg'\n```\n\nThis pulls the domain from the homeserver configured with the account used.\n\nAlternate account\n```sh\n$ matrixcli send --account my-account '#mychannel:chat.mydomain.com' 'hello there'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadams%2Fgo-matrixcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnadams%2Fgo-matrixcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadams%2Fgo-matrixcli/lists"}