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.
Looking for someone that can help to make this work on Mac or Windows
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
--no-sudo don't use sudo to install
--prefix PREFIX install aws-cli in custom path (default is /usr/local)
only working on Linux right now
Setup
python3 -m pip install awscli-update
Auto update
Right now this is only tested on 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 --no-sudo --prefix $HOME/.local
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
) - 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
awscli-update-0.1.7.tar.gz
(22.4 kB
view hashes)
Built Distribution
Close
Hashes for awscli_update-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb8c677f2a9d1de263bffd546a98c9ac594fc13d1ad1840198ff85dd2748da1 |
|
MD5 | 66063c8ccf98befa4548416049553422 |
|
BLAKE2b-256 | f2544ce83de32098ca09d3792f137cbb30880d1ee4a738b2b35cea13b3ef2fd8 |