National Public Mania

    @everymundo/cloudflare-kv

    0.0.3 • Public • Published

    Cloudflare KV

    Easily provision KV namespaces and its values on Cloudflare Serverless Components.

     

    1. Install
    2. Create
    3. Configure
    4. Deploy

     

    1. Install

    $ npm install -g @everymundo/cloudflare-kv

    2. Create

    $ mkdir demo && cd demo

    Just create a serverless.yml file

    $ touch serverless.yml
    $ touch .env      # your CF credentials
    # .env
    CF_ACCOUNT_ID=
    CF_EMAIL=
    CF_KEY=
    CF_TOKEN=
    
    

    3. Configure

    Create a serverless.yml file:

    # serverless.yml
    name: test
    stage: dev
    plugins:
       - serverless-dotenv-plugin
    test:
      component: "@everymundo/cloudflare-kv"
      inputs:
        namespace: mydomain.com
        values:
          - key: key1
            value: vakue1
          - key: key2
            value: value2    

    Use the environment variables CF_ACCOUNT_ID, CF_EMAIL and CF_KEY or CF_TOKEN to specify your Cloudflare API credentials.

    4. Deploy

    $ severless
    
    $

     

    New to Components?

    Checkout the Serverless Components repo for more information.

    Install

    npm i @everymundo/cloudflare-kv

    DownloadsWeekly Downloads

    23

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    9.49 kB

    Total Files

    6

    Last publish

    Collaborators

    • eblez
    • mjremedios1985
    • mtmorell88
    • a11y_automation2
    • ramses83
    • raydel
    • alex-orga
    • vladimirpetrov
    • estebanpablo89
    • yartiles
    • jonmorazav
    • emdavidmoreno
    • everymundo-admin
    • ballester
    • danielsan
    • halain
    • avivero93
    • anahiem
    • herlin
    • karinfdez
    • ernestocarrasco
    • erlin
    • front10devs
    • hdelcastillo
    • dcuevacem
    • rodneyem
    • ortega.dc98
    • pedroleon917
    • kaylingw
    • joeaspiazuem
    • lazjramos
    • daniuska-em
    • cstansfld