{"id":13821996,"url":"https://github.com/lambtron/medium-cli","last_synced_at":"2025-06-11T11:34:20.299Z","repository":{"id":57294064,"uuid":"44059432","full_name":"lambtron/medium-cli","owner":"lambtron","description":"Medium via CLI","archived":false,"fork":false,"pushed_at":"2018-05-18T13:16:52.000Z","size":17,"stargazers_count":84,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T23:47:51.206Z","etag":null,"topics":["blog","blogging","cli","medium"],"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/lambtron.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":"2015-10-11T16:16:44.000Z","updated_at":"2024-04-30T09:50:31.000Z","dependencies_parsed_at":"2022-08-29T09:50:41.028Z","dependency_job_id":null,"html_url":"https://github.com/lambtron/medium-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambtron%2Fmedium-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambtron%2Fmedium-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambtron%2Fmedium-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lambtron%2Fmedium-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lambtron","download_url":"https://codeload.github.com/lambtron/medium-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240100514,"owners_count":19747683,"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":["blog","blogging","cli","medium"],"created_at":"2024-08-04T08:01:37.514Z","updated_at":"2025-02-23T16:33:25.905Z","avatar_url":"https://github.com/lambtron.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Medium CLI\n\n\u003e Medium from your command line!\n\n## Installation\n\n```\n$ npm install -g medium-cli\n```\n\n## Usage\n\nThere are four commands: `medium create`, `medium login`, `medium publish`, and `medium open`.\n\n### `create` \u003cdirectory name\u003e\n\n```\n$ medium create buzzfeed\n\n  medium · Successfully created your blog!\n\n```\n\nThis command creates a new sub directory \u003cdirectory name\u003e in your current directory, with two example articles. The directory looks like this:\n\n```\n.\n├── articles\n|   ├── 12-classic-love-scenes-improved-by-a-chipotle-burrito\n|   |   └── index.md\n|   └── 51-corgi-gifs-that-will-change-your-life\n|       └── index.md\n└── .gitignore\n```\n\nThe `index.md` files are the blog posts. More on this later.\n\n### `login`\n\n```\n$ medium login\n\n  medium · Please open https://medium.com/me/settings in your browser.\n         · At the bottom of the page, under `Integration Tokens`, copy\n         · this description:\n\n         · \"Medium-CLI basic publishing access.\"\n\n         · Then generate the new token and copy it.\n\n  Paste your Integration Token here: XXXX\n\n         · Authenticating into Medium..\n\n         · Saved!\n```\n\nThis command asks you for your Integration Token (which can be retrieved at the bottom of this [page](https://medium.com/me/settings)). It also auths into Medium to get your user information. Lastly, it saves the token, your `userId`, and your URL to your ~/.netrc file.\n\n### `publish`\n\n```\n$ medium publish\n```\n\nThis command iterates through your `index.md` files in `./articles` and publishes the ones that don't have `published: true` in the front matter to your Medium account.\n\nHere is an [example](https://raw.githubusercontent.com/lambtron/medium-cli/master/lib/create/template/articles/12-classic-love-scenes-improved-by-a-chipotle-burrito/index.md) of an `index.md` file:\n\n```markdown\n---\ntitle: 12 Classic Love Scenes Improved By A Chipotle Burrito\ntags: burrito, gifs, love\ncanonicalUrl: www.buzzfeed.com/kincairm/12-classic-love-scenes-improved-by-a-chipotle-burr-a4wp#.iab3N1w76\npublishStatus: draft\nlicense: all-rights-reserved\n---\n\n# 1. Titanic (1997)\n\n![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr05/28/11/enhanced-21200-1398697731-24.jpg)\n\n# 2. The Notebook (2004)\n\n![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr06/28/11/enhanced-13907-1398700313-2.jpg)\n\n# 3. Dirty Dancing (1987)\n\n![](http://ak-hdl.buzzfed.com/static/2014-04/enhanced/webdr04/28/11/enhanced-31301-1398697944-9.jpg)\n```\n\nNote that `title` is the only field that is required in the front matter, with all the other ones optional. For a list of the accepted possible parameters, see Medium's API documentation [here](https://github.com/Medium/medium-api-docs/#creating-a-post). `contentFormat` and `content` are not required in the front matter, as they are both added later by the `medium publish` command.\n\nFor each successful post, the `medium publish` command also adds `published: true` to the front matter.\n\n### `open`\n\n```\n$ medium open\n```\n\nThis directs your browser to your Medium page. You need to have `medium login` first to set your Medium URL.\n\n## License (MIT)\n\n```\nWWWWWW||WWWWWW\n W W W||W W W\n      ||\n    ( OO )__________\n     /  |           \\\n    /o o|    MIT     \\\n    \\___/||_||__||_|| *\n         || ||  || ||\n        _||_|| _||_||\n       (__|__|(__|__|\n```\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambtron%2Fmedium-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambtron%2Fmedium-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambtron%2Fmedium-cli/lists"}