A handy list of common PowerShell and CMD commands for working with your Ashley Timer project, Capacitor, Android Studio, and Gradle.
๐น Navigation & File Ops
- Change directory:
cd "C:\Users\Heru Da Guru\projects\ashleytimer" - Go up one folder:
cd .. - List files:
dir - Check file contents:
Get-Content .\path\file.txt - Write/replace file contents:
Set-Content .\path\file.txt "new content" - Append to file:
Add-Content .\path\file.txt "extra line"
๐น Node & Capacitor
- Check Node & NPM versions:
node -v npm -v - Install Capacitor CLI:
npm i -D @capacitor/cli npm i @capacitor/core - Init Capacitor project:
npx cap init "Ashley Timer" com.studio1live.ashley - Add Android platform:
npm i @capacitor/android npx cap add android - Copy/sync web โ Android:
npx cap copy npx cap sync android - Open in Android Studio:
npx cap open android
๐น Gradle & Build
- Navigate to android folder:
cd android - Clean build:
- Assemble debug APK:
.\gradlew assembleDebug - Bundle release (AAB for Play Store):
.\gradlew bundleRelease - Assemble release APK:
.\gradlew assembleRelease
๐น Keystore & Signing
- Generate keystore:
& "C:\Program Files\Android\Android Studio\jbr\bin\keytool.exe" -genkeypair -v ` -keystore release.keystore ` -storetype PKCS12 ` -alias ashley_upload ` -keyalg RSA -keysize 2048 -validity 10000 - Move keystore:
mv release.keystore android\app\ - Check Gradle props:
Get-Content $env:USERPROFILE\.gradle\gradle.properties
๐น Debugging Helpers
- Search styles.xml for splash:
Get-Content .\android\app\src\main\res\values\styles.xml | Select-String -Pattern "Splash" - Search manifest for splashscreen ref:
Get-Content .\android\app\src\main\AndroidManifest.xml | Select-String -Pattern "splash" - Quick Zip project:
Compress-Archive -Path * -DestinationPath ashley_base.zip
โ With these commands you can navigate, inspect files, sync with Capacitor, build debug/release APKs, generate keystore, and package AABs for Google Play.