dynamo-tools
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

dynamo-tools

CLI tools for dynamodb

Build Status oclif Version Downloads/week Maintainability License

Usage

$ npm install -g dynamo-tools
$ ddb COMMAND
running command...
$ ddb (-v|--version|version)
dynamo-tools/1.4.0 linux-x64 node-v12.16.2
$ ddb --help [COMMAND]
USAGE
  $ ddb COMMAND
...

Commands

ddb backup [FILE]

Backup all entries in a dynamodb table to a file

USAGE
  $ ddb backup [FILE]

ARGUMENTS
  FILE  Path to write the backup to.

OPTIONS
  -h, --help             show CLI help
  --batchSize=batchSize  [default: 100] The number of items to copy at a time
  --region=region        (required) AWS region that the DynamoDB is hosted in
  --source=source        (required) Name of the DynamoDB to copy entries from

See code: src/commands/backup.ts

ddb copy

Copy the contents of one dynamodb table to another

USAGE
  $ ddb copy

OPTIONS
  -h, --help                               show CLI help
  --batchSize=batchSize                    [default: 25] The number of items to copy at a time
  --destination=destination                (required) Destination table name
  --destinationProfile=destinationProfile  AWS Credentials profile to copy to
  --destinationRegion=destinationRegion    Region of destination table
  --region=region                          Region for both source and destination tables
  --source=source                          (required) Source table name
  --sourceProfile=sourceProfile            AWS Credentials profile to copy from
  --sourceRegion=sourceRegion              Region of source table

See code: src/commands/copy.ts

ddb delete [FILE]

describe the command here

USAGE
  $ ddb delete [FILE]

OPTIONS
  -h, --help       show CLI help
  --region=region  (required) AWS region that the DynamoDB is hosted in
  --target=target  (required) Name of the DynamoDB table to delete records from

See code: src/commands/delete.ts

ddb help [COMMAND]

display help for ddb

USAGE
  $ ddb help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

Readme

Keywords

Package Sidebar

Install

npm i dynamo-tools

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

20.4 kB

Total Files

16

Last publish

Collaborators

  • benforce