These commands show what your team’s plan includes, how many credits you have left, and which API keys exist. They pull the same information you see on Credits and usage and the API Keys page in Settings. You can use them in a script that warns you before credits run out, or to revoke a key straight from the terminal.
To read account and credit details, your key needs the Account and Credits areas, which both Full access and Read-only keys include. To manage keys, you need the API keys area. See Plans, credits and prices for how plans and credits work.
Running svanja account or svanja credits on its own only prints the help text. Use a subcommand to check your account or credits:
svanja account show # the plan and the team
svanja account entitlements # what the plan includes
svanja account usage # what's used
svanja credits balance
svanja credits transactions --all
Without --all, svanja credits transactions only returns the first page. You can also filter transactions by type and date.
Use svanja api-key to list your team’s keys, change their name or access, or revoke them. You still create new keys in the app, where you see each key once. See The REST API.