You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BoKKeR I’m almost done with the large v2 rewrite and have started looking at open issues.
The config you’re using might be valid on Carbon itself, but the format for presets in the CLI is different. Take a look at the default settings here.
The CLI uses Carbon’s query string param names (e.g., ds instead of dropShadow, fs instead of fontSize, etc.), so I don’t have to convert between fitting objects all the time. Also, you’re not specifying an existing preset in your example above; it’s lacking --preset.
I’ve tried what you were trying to do with a fresh install and an existing folder structure (the repo itself) + a custom --config, and everything works as expected.
npm uninstall -g carbon-now-cli
npm i -g carbon-now-cli
git clone https://github.com/mixn/carbon-now-cli.git
cd carbon-now-cli
carbon-now ./test/test-dummies/_unfold.js --config ./test/test-dummies/_config.json -p dummy-preset -t help -l ~/Desktop
results in ~/Desktop/help.png, which looks as expected (applying the dummy-preset):
I am running the following
./node_modules/.bin/carbon-now --headless --config carbon-config.json src/doc/help.md -t help -l img
with
And the result it
![help](https://user-images.githubusercontent.com/2664857/166140720-22ad9a19-c024-4e9e-b156-fdce23af2f48.png)
While the same config on the website gives:
Is there something I am missing? I have the config in the folder I am running the command from. I also tried with global carbon-now
The text was updated successfully, but these errors were encountered: