Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including a CLI wrapper for the SDK #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rf-santos
Copy link

@rf-santos rf-santos commented Mar 26, 2024

Medium CLI

I am submitting this pull request to integrate a CLI wrapper for the Python SDK.
This will simplify usage of the Medium API and SDK in CI/CD pipelines, for instance, using github actions.
This way, if I want to use an action to publish an .md file, I would simply pass the self-issued access token from github secrets to the CLI and call the SDK client to publish it.

medium create-post "My Title" /path/to/post.md -T <MEDIUM_ACCESS_TOKEN>

This would also facilitate publishing directly from the command-line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant