create-shopify-data
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

🚨 In active development (and extremely unstable)

create-shopify-data

Version Downloads/week License

Generate dummy data for your Shopify store.

To-do:

  • Delete products, customers, orders
  • Create orders
  • Create products (apparel)
  • Create products (random)
  • Tests

Usage

$ npm install -g create-shopify-data
$ create-shopify-data COMMAND
running command...
$ create-shopify-data (-v|--version|version)
create-shopify-data/0.2.1 darwin-x64 node-v10.12.0
$ create-shopify-data --help [COMMAND]
USAGE
  $ create-shopify-data COMMAND
...

Commands

create-shopify-data delete RESOURCE

Delete all orders from your Shopify store.

USAGE
  $ create-shopify-data delete RESOURCE

OPTIONS
  -i, --interval=interval  [default: 500] Specify the interval (in ms) between each Shopify API request. Default (and
                           min) is 500

See code: src/commands/delete.ts

create-shopify-data help [COMMAND]

display help for create-shopify-data

USAGE
  $ create-shopify-data help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

create-shopify-data orders

Create orders using preexisting products

USAGE
  $ create-shopify-data orders

OPTIONS
  -b, --backdate=backdate  [default: 0] The max number of months order creation time can be backdated by. Defaults to 0
                           (no backdate)

  -i, --interval=interval  [default: 500] Specify the interval (in ms) between each Shopify API request. Default (and
                           min) is 500

  -q, --quantity=quantity  [default: 20] The number of orders you would like to create

See code: src/commands/orders.ts

create-shopify-data products:apparel

Create products using the apparel preset

USAGE
  $ create-shopify-data products:apparel

OPTIONS
  -i, --interval=interval  [default: 500] Specify the interval (in ms) between each Shopify API request. Default (and
                           min) is 500

See code: src/commands/products/apparel.ts

create-shopify-data use SHOP ACCESS_TOKEN

Enter your myshopify domain (e.g ping-pong-shop-2) along with an access token or private app password (https://help.shopify.com/en/api/getting-started/authentication/private-authentication). Once authenticated, your credentials persist over usage sessions.

USAGE
  $ create-shopify-data use SHOP ACCESS_TOKEN

OPTIONS
  -h, --help  show CLI help

See code: src/commands/use.ts

Dependencies (12)

Dev Dependencies (20)

Package Sidebar

Install

npm i create-shopify-data

Weekly Downloads

5

Version

0.2.1

License

MIT

Unpacked Size

389 kB

Total Files

49

Last publish

Collaborators

  • dddeev