https://github.com/alex8088/electron-swan
🦢 A cli tool for managing local Electron release artifacts
https://github.com/alex8088/electron-swan
artifacts cli-tool electron
Last synced: 6 months ago
JSON representation
🦢 A cli tool for managing local Electron release artifacts
- Host: GitHub
- URL: https://github.com/alex8088/electron-swan
- Owner: alex8088
- License: mit
- Created: 2024-01-19T16:19:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-21T15:46:03.000Z (over 1 year ago)
- Last Synced: 2024-12-22T00:19:24.542Z (10 months ago)
- Topics: artifacts, cli-tool, electron
- Language: TypeScript
- Homepage:
- Size: 1.01 MB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🦢 electron-swan
A cli tool for managing local Electron release artifacts
![]()
npm i -g electron-swan
![]()
use swan to download and cache before installing or updating Electron
![]()
## Features
- List all local artifacts and disk usage
- Clean up by version range to save disk space
- Check for updates by version range
- Make Electron installation faster## Usage
See `swan --help` for more details
### swan list
Aliases: `swan ls`.
List all local artifacts.
| Options | Description |
| ---------------- | :------------------------------------------------ |
| `-p, --platfrom` | specify platform, e.g. `darwin`, `win32`, `linux` |
| `-a, --arch` | specify architecture, e.g. `x64`, `ia32`, `arm64` |
| `-d, --detail` | show all archives (default: false) |Specify arch or platform
![]()
Show all archives
![]()
## swan remove \
Aliases: `swan rm `.
Clean up local artifacts by version range. The `version` is required and is satisfied by the version range according to [semver](https://github.com/npm/node-semver).
![]()
You can use `-f, --force` option to remove directly without confirmation.
## swan check [version]
Check for updates by version prefix. You can use `--tag` option to check prerelease version, the tag must be `beta` or `alpha`.
![]()
## swan install [version]
Aliases: `swan i`, `swan add`.
Download the newer version that is satisfied by the version range according to semver. If no version range is specified, the latest version will be downloaded.
| Options | Description |
| ---------------- | :--------------------------------------------------------------------------- |
| `-p, --platfrom` | specify platform, e.g. `darwin`, `win32`, `linux` |
| `-a, --arch` | specify architecture, e.g. `x64`, `ia32`, `arm64` |
| `--mirror` | specify mirrors to download Electron release artifacts (default: npm mirror) |
![]()
## License
[MIT](./LICENSE) © alex.wei