lambtron / medium-cli Goto Github PK
View Code? Open in Web Editor NEWMedium via CLI
License: MIT License
Medium via CLI
License: MIT License
Hi Andy @lambtron
First, thanks for creating this very useful app. Like you , I wish if I could publish Medium from CLI
I installed it thru npm and looks every thing is working fine except for the publishing .. here is a complete view of what I did .. Please advise if I am missing anything
`bash-4.3$ pwd
/home/ajain/buzzfeed
bash-4.3$ medium login
medium · Please open https://medium.com/me/settings in your browser.
· At the bottom of the page, under Integration Tokens
, copy
· this description:
· "Medium-CLI basic publishing access."
· Then generate the new token and copy it.
Paste your Integration Token here:
#####################################################################
· Authenticating into Medium..
· Saved!
Testing a post from medium command line interface
bash-4.3$ `
Hi!
Thanks for the script. Unfortunately, I couldn't get it working. Below is the code.
Do you have any ideas on how to make it work?
Thanks,
Joni
C:\Users\joni>npm install -g medium-cli
npm WARN deprecated [email protected]: This package was split into two simpler plugins: metalsmith-layouts and metalsmith-in-place
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: This package is discontinued. Use lodash.iteratee@^4.0.0.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\joni\AppData\Roaming\npm\medium -> C:\Users\joni\AppData\Roaming\npm\node_modules\medium-cli\bin\medium
C:\Users\joni\AppData\Roaming\npm
-- [email protected]
-- [email protected]
-- [email protected]
-- [email protected] (git+ssh://[email protected]/ianstormtaylor/to-camel-case.git#02759f7dcf1b3a9c05568183dc14c738d2a0e229)
C:\Users\joni>medium login
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn C:\Users\joni\AppData\Roaming\npm\node_modules\medium-cli\bin\medium-login ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Add published: true
to top of markdown file?
Or use .medium
file?
sup, started using the cli today. First publish went like this:
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> medium publish
module.js:338
throw err;
^
Error: Cannot find module 'thunkify-wrap'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/medium-cli/lib/publish/articles.js:7:16)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> npm install thunkify-wrap -g
[email protected] /usr/local/lib/node_modules/thunkify-wrap
└── [email protected]
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium> medium publish
jmordetsky@Josephs-MacBook-Pro ~/A/p/j03m-medium>
Looks like you need to add thunkify-wrap to package.json?
Make sure they work
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.