CLI
CLI Overview
The Bundle Drop CLI is included with the @gfean/react-native-bundle-drop package.
That means once the package is installed in your app, you can use the CLI through npx bundle-drop ... without installing a separate global tool.
What the CLI Is For
The CLI is mainly used for:
- authenticating your local machine
- connecting the current app to the right Bundle Drop project
- rerunning setup helpers when needed
Authentication Commands
Use these when working locally:
Terminal
1npx bundle-drop login
2npx bundle-drop whoami
3npx bundle-drop logoutloginstarts the local CLI auth flowwhoamishows which account the CLI is currently usinglogoutremoves the local CLI session
Project Setup Commands
Use these when connecting the current React Native app to Bundle Drop:
Terminal
1npx bundle-drop init
2npx bundle-drop init-native
3npx bundle-drop init-metroinitconnects the app to a Bundle Drop project and generatesbundle.drop.config.jsinit-nativeretries only the native setup stepinit-metroretries only the Metro alias setup
Version Flag
If you only want the CLI version:
Terminal
1npx bundle-drop --cli-versionTypical Local Flow
For most teams, the normal local flow is:
- install the package
bundle-drop loginbundle-drop init- make your JS or asset changes
- use the upload command when you are ready to publish
The upload flow is covered on Uploading.
Related Docs
- For project setup before
init, see Project Creation. - For upload commands, see Uploading.
- For token-based automation, see CI/CD.