anshare
v1.4.4
Published
CLI for AnShare — share iOS and Android builds instantly
Maintainers
Readme
anshare
CLI for AnShare — share iOS and Android builds instantly. Upload an .ipa or .apk and get a shareable link in seconds.
Install
npm install -g anshareQuick start
# Authenticate (get your API key from anshare.link/settings)
anshare login
# Upload a build
anshare upload app.ipa
# List recent builds
anshare buildsCommands
anshare login [apiKey]
Authenticate with your AnShare API key. Saves to ~/.anshare/config.json.
anshare login
# or pass directly
anshare login ansk_your_key_hereanshare upload <file>
Upload an .ipa or .apk build. Platform is auto-detected from the file extension.
anshare upload app.ipa
anshare upload app.apk --name "My App" --version "2.1.0" --notes "Bug fixes"
anshare upload app.ipa --expires-in 7 --openOptions:
| Flag | Description |
|------|-------------|
| --name <name> | Build name (default: filename without extension) |
| --version <version> | Version string (default: 1.0) |
| --build-number <n> | Build number |
| --notes <text> | Release notes |
| --password <pass> | Password-protect the share link |
| --expires-in <days> | Expire the link after N days |
| --platform <IOS\|ANDROID> | Override platform detection |
| --open | Open the share URL in your browser after upload |
anshare builds
List your recent builds.
anshare builds
anshare builds --limit 20anshare whoami
Show the currently authenticated user.
anshare whoamiCI/CD usage
Set ANSHARE_API_KEY as an environment variable — no login step needed.
# GitHub Actions example
- name: Upload build
env:
ANSHARE_API_KEY: ${{ secrets.ANSHARE_API_KEY }}
run: anshare upload app.ipa --version ${{ github.ref_name }} --notes "Release build"Environment variables
| Variable | Description |
|----------|-------------|
| ANSHARE_API_KEY | API key (overrides saved config) |
| ANSHARE_API_URL | API base URL (default: https://api.anshare.link) |
License
MIT
