comdirect CLI tool lets you interact with your comdirect account, depot, documents and other resources.
So far only tested on macOS 12.1 and Fedora 33
go install github.com/jsattler/go-comdirect/comdirect@mainAll commands and subcommands use the singular form, so instead of
accountsit'saccount. This is a convention to make it easier for users to remember the commands.
Usage:
comdirect [COMMAND] [SUBCOMMAND] [OPTIONS] [ID]
To log in you can specify the credentials through the options or when prompted.
The login command will try to store the credentials in one of the following locations depending on your OS
- OS X KeyChain
- Secret Service dbus interface (GNOME Keyring)
- Windows Credentials Manager
comdirect login \
--id=<clientID> \
--secret=<clientSecret> \
--username=<username> \
--password=<password>or
comdirect loginThe logout command will remove all stored credentials, access and refresh tokens from the mentioned credential providers.
comdirect logout List basic account information
comdirect accountList all account information and balances (giro Konto, tagesgeldplus etc.)
comdirect account balanceRetrieve account information and balances for a specific account
comdirect account balance <accountID>Retrieve account transactions for a specific account
comdirect account transaction <accountID>Retrieve depot information
comdirect depotRetrieve depot positions for a specific depot
comdirect depot position <depotID>Retrieve a specific depot position for a specific depot
comdirect depot position --position=<positionID> <depotID>Retrieve all transactions for a specific depot
comdirect depot transaction <depotID>Some notes on the current behavior:
- the tool does not check if a file already exists. If it does, it will download and truncate the existing file
- You need to specify the
--downloadflag to download the files
List all documents from the postbox
comdirect documentList a specific document
comdirect document <documentID>Download first 20 documents
comdirect document --count=20 --downloadDownload document by ID
comdirect document --download <documentID>