https://github.com/flotiq/flotiq-setup
Flotiq-setup helps you easily authenticate your local project with Flotiq
https://github.com/flotiq/flotiq-setup
flotiq
Last synced: 3 months ago
JSON representation
Flotiq-setup helps you easily authenticate your local project with Flotiq
- Host: GitHub
- URL: https://github.com/flotiq/flotiq-setup
- Owner: flotiq
- License: mit
- Created: 2024-04-20T21:23:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T10:19:22.000Z (5 months ago)
- Last Synced: 2025-03-20T13:41:51.729Z (4 months ago)
- Topics: flotiq
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
npx flotiq-setup
```## Usage
```
Use flotiq-setup to authenticate your local project using Global Read-Only keyCommands:
index.mjs flotiq-setup [options] Connect the project with FlotiqOptions:
--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.
```bash
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
```javascript
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 [](https://discord.gg/FwXcHnX).If you found a bug, please report it in [issues](https://github.com/flotiq/flotiq-setup).