withframe
v1.0.0
Published
WithFrame component registry CLI
Downloads
227
Maintainers
Readme
Features
- Add components from WithFrame registry to your project
- Upload component drafts to the registry
- Upload screenshots and attach them to collections
- Device login flow for CLI auth
- Local project config via
withframe.config.json
Installation
Use directly with npx:
npx withframe@latest --helpOr install globally:
npm i -g withframe
withframe --helpQuick Start
- Initialize config (optional but recommended):
npx withframe init- Login:
npx withframe login- Set token in one of two ways:
Option A: export in shell
export WITHFRAME_TOKEN="wf_..."Option B: save in project .env or .env.local
WITHFRAME_TOKEN="wf_..."- Add a component:
npx withframe add buttonCommands
withframe init- create/updatewithframe.config.jsonwithframe login- start device auth flowwithframe logout- clear local auth token filewithframe add <component>- add component files to projectwithframe upload- upload component draft to registrywithframe shot --file <path>- upload screenshot
Run withframe <command> --help for command options.
Configuration
withframe.config.json:
{
"outputDir": "src/components",
"target": "react_native"
}outputDir- where generated files are writtentarget-react_nativeorexpo
