Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including dynamo-tools with all npm packages installed. Try it out:

var dynamoTools = require("dynamo-tools")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

dynamo-tools v1.4.0

CLI utilities for dynamodb

dynamo-tools

CLI tools for dynamodb

Build Status oclif Version Downloads/week Maintainability License

* [dynamo-tools](#dynamo-tools) * [Usage](#usage) * [Commands](#commands)

Usage

```sh-session $ 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]`](#ddb-backup-file) * [`ddb copy`](#ddb-copy) * [`ddb delete [FILE]`](#ddb-delete-file) * [`ddb help [COMMAND]`](#ddb-help-command)

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free