{"id":28493887,"url":"https://github.com/szyn/mog","last_synced_at":"2026-03-14T16:02:28.581Z","repository":{"id":57592257,"uuid":"95348027","full_name":"szyn/mog","owner":"szyn","description":"mog is the CLI for Digdag (Unofficial) (https://www.digdag.io).","archived":false,"fork":false,"pushed_at":"2018-02-15T01:26:29.000Z","size":60,"stargazers_count":42,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-08T09:47:38.538Z","etag":null,"topics":["cli","digdag","mog"],"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/szyn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-25T08:38:42.000Z","updated_at":"2022-07-11T20:35:51.000Z","dependencies_parsed_at":"2022-08-30T07:41:00.278Z","dependency_job_id":null,"html_url":"https://github.com/szyn/mog","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/szyn/mog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szyn%2Fmog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szyn%2Fmog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szyn%2Fmog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szyn%2Fmog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szyn","download_url":"https://codeload.github.com/szyn/mog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szyn%2Fmog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264259555,"owners_count":23580832,"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":["cli","digdag","mog"],"created_at":"2025-06-08T09:37:17.256Z","updated_at":"2026-03-14T16:02:28.515Z","avatar_url":"https://github.com/szyn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"mog\n---\n[![GitHub release](https://img.shields.io/github/release/szyn/mog.svg?style=flat-square)](https://github.com/szyn/mog/releases/latest)\n[![Circle CI](https://img.shields.io/circleci/project/github/szyn/mog.svg?style=flat-square)](https://circleci.com/gh/szyn/mog)\n[![Language](https://img.shields.io/badge/language-go-brightgreen.svg?style=flat-square)](https://golang.org/)\n[![GoDoc](https://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/szyn/mog)\n[![Docker Pulls](https://img.shields.io/docker/pulls/szyn/mog.svg?style=flat-square)](https://hub.docker.com/r/szyn/mog/)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://opensource.org/licenses/Apache-2.0)\n\nmog - A CLI Tool for Digdag.\n\n# Description\nmog is a command-line interface tool for the Digdag.  \nmog output format is JSON, so it can be filtered with a JSON processor such as jq.\n\n## What's Digdag?\nDigdag is an open source Workload Automation System (https://www.digdag.io)\n\n# Installation\n\nYou can download the binary from the [releases](https://github.com/szyn/mog/releases) page.\n\ne.g. os: `linux`, arch: `amd64`  \nDownload to `/usr/local/bin`\n```console \n$ curl -L https://github.com/szyn/mog/releases/download/v0.1.6/mog_linux_amd64.tar.gz | tar zx -C /usr/local/bin\n```\n\n### macOS\n\nYou can use Homebrew:  \n\n```console\n$ brew tap szyn/mog\n$ brew install mog\n```\n\n### Docker\nYou can also to use docker image: \n\n```console\n$ docker run --rm szyn/mog:v0.1.6\n```\n\n### go get\n...Or you can install via go get:\n\n```\n$ go get -u github.com/szyn/mog\n```\n\n# Usage\n\n`mog --help` show help.\n\n```console\n$ mog --help\nNAME:\n   mog - A CLI Tool for Digdag\n\nUSAGE:\n   mog [global options] command [command options] [arguments...]\n\nVERSION:\n   v0.1.6\n\nCOMMANDS:\n     status, s  Show a status of the task\n     start,     Start a new session attempt of a workflow\n     retry, r   Retry a session\n     polling, p  Poll to get a status of the task\n     help, h    Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --host value, -H value  digdag host or ip addr (default: \"localhost\")\n   --port value, -P value  digdag port number (default: 65432)\n   --ssl https             make https request\n   --verbose               verbose output\n   --help, -h              show help\n   --version, -v           print the version\n```\n\n## Examples\n\n#### Check a status of the task\nUse `mog status`\n\n```console\ne.g.\n#############################################\n# host: localhost (default)\n# project: sample\n# workflow: digdag-sample\n# sessionTime: 2017-10-08T15:00:00+00:00 (UTC)\n# taskName: +digdag-sample+disp_current_date\n#############################################\n\n$ mog -H localhost status -p sample -w digdag-sample --session 2017-10-08T15:00:00+00:00 +digdag-sample+disp_current_date\n{\n    \"id\": \"41\",\n    \"fullName\": \"+digdag-sample+disp_current_date\",\n    \"parentId\": \"39\",\n    \"config\": {\n        \"echo\u003e\": \"${moment(session_time).utc().format('YYYY-MM-DD HH:mm:ss Z')}\"\n    },\n    \"upstreams\": [\n        \"40\"\n    ],\n    \"state\": \"success\",\n    \"exportParams\": {},\n    \"storeParams\": {},\n    \"stateParams\": {},\n    \"updatedAt\": \"2017-10-09T14:50:26Z\",\n    \"retryAt\": null,\n    \"startedAt\": \"2017-10-09T14:50:26Z\",\n    \"isGroup\": false\n}\n```\n\nSee also `mog status --help`\n\n#### Polling to check success state of the task\nUse `mog polling status`\n\n#### Start a workflow (experimental)\nUse `mog start`\n\n```console\ne.g.\n#############################################\n# host: localhost (default)\n# project: sample\n# workflow: digdag-sample\n# sessionTime: 2017-10-08T15:00:00+00:00 (UTC)\n#############################################\n\n$ mog -H localhost start -p sample -w digdag-sample --session 2017-10-09\n{\n    \"id\": \"5\",\n    \"index\": 1,\n    \"project\": {\n        \"id\": \"2\",\n        \"name\": \"sample\"\n    },\n    \"workflow\": {\n        \"name\": \"digdag-sample\",\n        \"id\": \"3\"\n    },\n    \"sessionId\": \"3\",\n    \"sessionUuid\": \"948a9083-095c-4eea-b910-d63763006de7\",\n    \"done\": false,\n    \"success\": false,\n    \"cancelRequested\": false,\n    \"createdAt\": \"2017-10-09T14:50:03Z\",\n    \"finishedAt\": \"\",\n    \"workflowId\": \"3\",\n    \"sessionTime\": \"2017-10-08T15:00:00+00:00\",\n    \"params\": {}\n}\n```\n\nSee also `mog start --help`\n\n#### Retry a workflow (experimental)\nUse `mog retry`\n\n```console\ne.g.\n#############################################\n# host: localhost (default)\n# project: sample\n# workflow: digdag-sample\n# sessionTime: 2017-10-08T15:00:00+00:00 (UTC)\n#############################################\n\n$ mog -H localhost retry -p sample -w digdag-sample --session 2017-10-09\n{\n    \"id\": \"6\",\n    \"index\": 2,\n    \"project\": {\n        \"id\": \"2\",\n        \"name\": \"sample\"\n    },\n    \"workflow\": {\n        \"name\": \"digdag-sample\",\n        \"id\": \"3\"\n    },\n    \"sessionId\": \"3\",\n    \"sessionUuid\": \"948a9083-095c-4eea-b910-d63763006de7\",\n    \"done\": false,\n    \"success\": false,\n    \"cancelRequested\": false,\n    \"createdAt\": \"2017-10-09T14:50:26Z\",\n    \"finishedAt\": \"\",\n    \"workflowId\": \"3\",\n    \"sessionTime\": \"2017-10-08T15:00:00+00:00\",\n    \"retryAttemptName\": \"f01529fd-fc2c-4f77-b6c5-f484321e2001\",\n    \"params\": {}\n}\n```\n\nSee also `mog retry --help`\n\n## Licence\n\n[Apache License 2.0](LICENSE)\n\n## Author\n\n[szyn](https://github.com/szyn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszyn%2Fmog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszyn%2Fmog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszyn%2Fmog/lists"}