CLI tool to update AWS CLI 2
Project description
AWS CLI v2 Update Script
A small script to keep the AWS CLI v2 up to date, until AWS figures out how to distribute software properly.
Usage
usage: awscli-update [-h] [--version] [-n] [-q] [--no-sudo] [--prefix PREFIX]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-n, --noop only compare versions but don't install
-q, --quiet only print error messages when updating
--sudo use sudo to install (e.g. when installing to /usr/local)
--prefix PREFIX install aws-cli in custom path (default is /usr/local)
Setup
python3 -m pip install awscli-update
Auto update
Linux
Assuming the awscli-update
binary is installed in $HOME/.local/bin
(check the location on your machine by running which awscli-update
),
you want to install the AWS CLI in $HOME/.local/bin
and
you want to check for updates every hour,
run crontab -e
and add following line
0 * * * * $HOME/.local/bin/awscli-update -q --prefix $HOME/.local
macOS
Assuming the awscli-update
binary is installed in /opt/homebrew/bin
(check the location on your machine by running which awscli-update
),
you want to install the AWS CLI in /opt/homebrew/bin
and
you want to check for updates every hour,
run crontab -e
and add following line
PATH=$PATH:/usr/sbin
0 * * * * /opt/homebrew/bin/awscli-update -q --prefix /opt/homebrew
General things
If you want to check for updates more/less often or at specific times, check this editor for cron expressions.
Development
- Create venv (
python3 -m venv venv
) - Start venv (
source venv/bin/activate
) - Install dependencies (
python3 -m pip install setuptools wheel twine versioneer
) - Install requirements (
python3 -m pip install -r requirements.txt
) - Build local dist (
python3 setup.py develop --user
)
Deployment
- Build dist (
python3 setup.py sdist bdist_wheel
) - Deploy (
twine upload dist/*
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file awscli-update-0.1.12.tar.gz
.
File metadata
- Download URL: awscli-update-0.1.12.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84cabb66b630d7011a94405a441eb9cb1577b9cb7cce97d65d8d26334147145 |
|
MD5 | 995d37b9b20a05ee59899b5ddd3f38f5 |
|
BLAKE2b-256 | f9dbf7e7ba72f9cbd638160a55a6eae3ddc05c2fcddadb452ae38ccb393459c8 |
File details
Details for the file awscli_update-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: awscli_update-0.1.12-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9cfaa644ae4ebafdd3934f73deea0d55641dae79061f0e1d549f2c39f9df4aa |
|
MD5 | b4efc3f8f56131fc3d0d0c1cac5eca83 |
|
BLAKE2b-256 | 4eeeca1682166ce710eb82f6d748245d74870277ce43f39a492acbb3670d0f28 |