Dead-simple AWS DynamoDB CLI
dynamo
dynamo
is a dead-simple CLI for AWS DynamoDB.
brew install glassechidna/taps/dynamo
scoop bucket add glassechidna https://github.com/glassechidna/scoop-bucket.git; scoop install dynamo
dynamo [-n COUNT] [--dax CLUSTER] [table-name [partition key value [sort key value-or-expression]]]
In place of a constant sort key, you can also type:
> someval
- all items with sort key value greater than someval
>= someval
- as above, but “greater than or equal to”<= someval
- as above, but “less than or equal to”< someval
- as above, but “less than”between val1 val2
- all items with sort keys between val1
and val2
someval*
- all items with sort keys that begin with someval
By default, only 10 items will be returned — this is to avoid accidentally
downloading an entire table! This can be controlled with the -n 30
flag.
Passing -n 0
disables the limit.
DynamoDB Accelerator (DAX) clusters are also supported. Pass --dax cluster-name
or --dax cluster-address:port
to take advantage of this.
Finally, output is pretty-printed and colourised when executed directly. If
executed as part of a script (as determined by isatty
), output will be
one-item-per-line in JSON Lines format.