Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 2.29 KB

README.md

File metadata and controls

68 lines (49 loc) · 2.29 KB
Flotiq logo

flotiq-setup

This command makes it super-easy to fill in the local .env files with Flotiq API key. By default the Global Read-Only key is used.

Quickstart

npx flotiq-setup

Usage

Use flotiq-setup to authenticate your local project using Global Read-Only key

Commands:
  index.mjs flotiq-setup [options]  Connect the project with Flotiq

Options:
      --version   Show version number                                        [boolean]
  -a, --authUrl   Authentication endpoint                                    [string]  [default: "https://editor.flotiq.com/login"]
  -r, --ro-key    Return Read only Flotiq api key as FLOTIQ_API_KEY          [boolean] [default: true]
  -w, --rw-key    Return Read and Write Flotiq api key as FLOTIQ_RW_API_KEY  [boolean] [default: false]
  -s, --silent    Suppress console output. Assumes no for all prompts.       [boolean] [default: false]
  -n, --no-store  Disable saving Flotiq api keys into env files              [boolean] [default: false]
      --nextjs    Generate variables and .env files relevant to Next.js      [boolean] [default: false]
                  (.env file only and only FLOTIQ_* variables)
  -h, --help      Show help                                                  [boolean]

Surpressing output messages

If you don't want to receive output messages, pass --silent/-s option to limit number of logs.

npx flotiq-setup --silent

This is especially useful when you are using flotiq-setup with other automation tools or you are running setup function by hand.

Node.js api

You can use command handler in your scripts by importing command handler

const { handler } = require("flotiq-setup/commands/setup");

await handler({
    authUrl: "https://editor.flotiq.com/login",
    roKey: true,
    rwKey: true,
    silent: false,
    noStore: false,
    nextjs: false,
});

Collaborating

If you wish to talk with us about this project, feel free to hop on our Discord Chat.

If you found a bug, please report it in issues.