{"id":21258904,"url":"https://github.com/microfleet/cli","last_synced_at":"2025-03-15T06:35:17.268Z","repository":{"id":42673828,"uuid":"50994277","full_name":"microfleet/cli","owner":"microfleet","description":"cli for running commands against microservices and printing the responses","archived":false,"fork":false,"pushed_at":"2022-03-28T23:23:28.000Z","size":237,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-15T02:32:44.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/microfleet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-02-03T11:06:48.000Z","updated_at":"2022-03-28T23:07:22.000Z","dependencies_parsed_at":"2022-08-28T02:50:30.405Z","dependency_job_id":null,"html_url":"https://github.com/microfleet/cli","commit_stats":null,"previous_names":["makeomatic/ms-cli"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microfleet%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microfleet%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microfleet%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microfleet%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microfleet","download_url":"https://codeload.github.com/microfleet/cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526847,"owners_count":20305108,"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-21T04:11:25.189Z","updated_at":"2025-03-15T06:35:17.224Z","avatar_url":"https://github.com/microfleet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @microfleet/cli\n\nCLI for running commands against AMQP transport in @microfleet/core services.\n\n```sh\nUsage: bin/ms-cli.js --q.offset=0 --q.limit=10 -r payments.transactions.common\n\nOptions:\n  --port, -p      rabbitmq port                                  [default: 5672]\n  --host, -h      rabbitmq host                           [default: \"localhost\"]\n  --login, -l     rabbitmq user                               [default: \"guest\"]\n  --password, -P  rabbitmq password                           [default: \"guest\"]\n  --route, -r     rabbitmq routing key                                [required]\n  --query, -q     query object                                     [default: {}]\n  --timeout, -t   request timeout                               [default: 15000]\n  --config        Path to JSON config file\n  --help          Show help                                            [boolean]\n```\n\n## Usage example\n\nAssuming you are running node 8.x.x, where `npx` is bundled you can do the following\nto run commands against AMQP-enabled endpoints\n\n```sh\n$ docker exec -it \u003c@microfleet/container-name\u003e sh\n$ npx @microfleet/cli -r pdf.render -q '{\"meta\":false,\"context\":{},\"template\":\"sample\"}'\n```\n\nResponse will be printed to stdout/stderr based on success/failure of the request\nIn the real-world you'd likely want to run some less complicated requests or prepare them\nelsewhere and just use this cli to issue requests so that they end up correctly serialized\nand response is then correctly deserialized and printed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofleet%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrofleet%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrofleet%2Fcli/lists"}