@windduongcorp/wind-cli
v0.0.7
Published
> Simplifying repetitive commands to boost developer productivity and save valuable time.
Readme
wind-cli ⛳
Simplifying repetitive commands to boost developer productivity and save valuable time.
Install
$ npm i -g @windduongcorp/wind-cliAPI
simulator: Open virtual machines installed on the computer
rn: Some snippet for react native
update: Update versionCode, versionName for Android and CURRENT_PROJECT_VERSION, MARKETING_VERSION for IOSinstall: Choose a simulator to install react native appbuild<target>: Build release artifacts from the current working directory (your React Native project root). Targets:ios(IPA viaxcodebuild),apk,aab. Loads a.envfile and merges vars into the process environment for the build; setsAPP_ENVto the chosen file’s path (relative when under the repo).- Options:
-e|--env-file <path>env file relative to project root or absolute. If omitted, the CLI scansfiles/then the project root for.env*; with multiple matches you pick interactively. - Examples:
wind rn build apk -e .env.staging wind rn build aab --env-file files/.env.prod wind rn build ios -e .env - Android: Java 17 is required. The CLI looks for JDK 17 via
ANDROID_JAVA_HOME, thenJAVA_HOME, then typical macOS locations (brew install openjdk@17; you can setANDROID_JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home). - iOS: Expects one
*.xcworkspaceunderios/. Optional env overrides:IOS_EXPORT_METHOD(defaultad-hoc),IOS_TEAM_ID.
- Options:
upload: Multipart POST of a built artifact usingcurl. Credentials and metadata come from the same style of.envfile as builds.- Required vars in that file:
UPLOAD_LINK,UPLOAD_PASSWORD,UPLOAD_COMPANY,UPLOAD_ENV,UPLOAD_APP. - Options:
-e|--env-file <path>;-f|--file <path>to.apk,.aab, or.ipa(interactive prompt if omitted);-p|--platform android|ios(interactive if omitted). - Example:
wind rn upload -e .env.staging -f android/app/build/outputs/apk/release/app-release.apk -p android
- Required vars in that file:
alias--name|-n <name>: Long scripts will be combined into 1 script.
{
rn_start: {
cmd: 'npx react-native start',
desc: 'Start the Metro bundler for React Native'
},
rn_start_android: {
cmd: 'npx react-native run-android',
desc: 'Run the Android app on a connected device or emulator'
},
rn_start_ios: {
cmd: 'npx react-native run-ios',
desc: 'Run the iOS app (no specific device specified)'
},
yarn_clear: {
cmd: 'watchman watch-del-all && rm -rf yarn.lock package-lock.json node_modules ios/Pods ios/Podfile.lock android/app/build && yarn install && cd ios && pod update && cd ..',
desc: 'Clean project and reinstall dependencies using Yarn'
},
pnpm_clear: {
cmd: 'watchman watch-del-all && rm -rf yarn.lock package-lock.json node_modules ios/Pods ios/Podfile.lock android/app/build && pnpm install && cd ios && pod update && cd ..',
desc: 'Clean project and reinstall dependencies using PNPM'
},
postinstall: {
cmd: 'cd ios && pod install && cd ..',
desc: 'Install iOS CocoaPods dependencies'
},
yarn_postinstall: {
cmd: 'yarn && cd ios && pod install && cd ..',
desc: 'Install project dependencies with Yarn and install iOS pods'
},
pnpm_postinstall: {
cmd: 'pnpm install && cd ios && pod install && cd ..',
desc: 'Install project dependencies with PNPM and install iOS pods'
},
release_android: {
cmd: 'cd android && ./gradlew assembleRelease && cd ..',
desc: 'Build the Android release APK'
},
terminal: {
cmd: `open -a Terminal "$(pwd)"`,
desc: 'Open Terminal at the current project directory'
}
}Extension
Owner 🙎♂️
Give five stars 🤩
If you like it, rate it

