Ashley Mobile Build โ€” PowerShell & CLI Cheat Sheet


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.