A command line utility to check build usage across multiple Netlify accounts
Project description
Netlify Builds
A command line utility to check build usage across multiple Netlify accounts
Installation
Recommended to install this via pipx:
pipx install netlify-builds
Setup
Create a .netlify-builds.json
in your home directory with the following shape:
{
"team-name-1": "access-token-1",
"team-name-2": "access-token-2",
...
}
To obtain the token for each team, open a private browsing session and login to your team dashboard and copy it from the local storage, it should be located under the key nf-session
.
DO NOT LOG OUT. Instead, simply close the private browsing session. If you log out, the token will be invalidated.
Profit
You're good to go, check all your accounts from the comfort of your terminal:
➜ netlify-builds
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓
┃ Team ┃ Mins ┃ Start Date ┃ End Date ┃ Elapsed ┃ Used ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━┩
│ team-blue │ 5 mins │ 2020-11-16 │ 2020-12-16 │ 11.6% │ 1.7% │
│ team-red │ 182 mins │ 2020-10-27 │ 2020-11-27 │ 75.9% │ 60.7% │
│ team-green │ 46 mins │ 2020-11-02 │ 2020-12-02 │ 58.3% │ 15.3% │
└───────────────────┴──────────┴────────────┴────────────┴─────────┴───────┘
If you're likely to exceed the free quota (300 mins) the rows will appear in red, otherwise in green.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Bruno Alla 💻 📖 🤔 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.
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 netlify-builds-0.1.5.tar.gz
.
File metadata
- Download URL: netlify-builds-0.1.5.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44c725368d8a17145605ce32a7fa7ea5304adc992b79e0fabfe9e813d584efaa |
|
MD5 | 3b8aed85927b7ab1d70b0ab3425150ac |
|
BLAKE2b-256 | 9d73a702da2755f4ddbaf7252118597d36198c817c823ec3a8d9dea530b94cc9 |
File details
Details for the file netlify_builds-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: netlify_builds-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d39eba3afc82b21d6dfacf9b69a710233a0c9bc28750a1a740f222ac627273b |
|
MD5 | 55058d0c01445ef062d4cc92261ac949 |
|
BLAKE2b-256 | f31ebb7b2933e2dca87bda23f570b84f5f027100859e15f4cbeb6e88e91ff081 |