The cards command line client shows the same cards as the web app, so you can add, start and finish cards without leaving your terminal. Setup takes a few minutes.
It needs Python 3.10 or newer.
pip install cards
Or, to keep it in its own environment, uv tool install cards or pipx install cards. Check it with cards version: it should be 3.0.0 or newer. (The versions used in the pytest course and book are older, and don't work with the web app.)
On your profile page, under API Keys, click New API Key. Copy the key right away: it's shown only once. Treat it like a password. If it leaks, revoke it on the same page and make a new one.
Set three environment variables:
export CARDS_URL=https://cards.pythontest.com
export CARDS_TEAM=your-team
export CARDS_API_KEY=your-api-key
A team's name for CARDS_TEAM is the part after /a/ in its web addresses. To keep these set, add them to your shell's startup file (e.g. ~/.zshrc or ~/.bashrc). Check them with cards config, which shows the web app and team it's using.
Optionally, set CARDS_PROJECT to a project's name to use it instead of the team's default project. With a tool like direnv, each code repository can have its own project.
cards # your team's open cards
cards add fix the login page -o me
cards start 12
cards finish 12
cards later 13 # park a card on the Later list
cards details 12 --edit # notes, in your $EDITOR
cards list -s all # include done cards
cards --help
Owners are team members: use -o me, or a teammate's email or name. Card numbers match the web app, so cards start 12 starts the same card 12 you see there.
Without CARDS_URL, cards keeps a private list in a file on your computer (~/cards_db). Unset it to switch back.