Fungies CLI

The Fungies CLI lets you manage your entire store from the terminal โ€” query orders, look up customers, manage subscriptions, export data, and automate workflows without opening the dashboard.

GitHub: https://github.com/dukenukemall/fungies-cliarrow-up-right

Requirements


Step 1 โ€” Install the CLI

Open your terminal and run:

npm install -g fungies

Verify the installation:

fungies --version

You should see something like fungies/0.4.2 ...


Step 2 โ€” Get your API Keys

Go to your Fungies Dashboardarrow-up-right โ†’ Developers โ†’ API Keys and generate your keys.

You'll get two types:

Key
Prefix
Used for

Public Key

pub_...

All read operations (list, get)

Secret Key

sec_...

Write operations (create, update, archive)

โš ๏ธ Keep your Secret Key private. Never share it or commit it to version control.


Step 3 โ€” Authenticate

Run the following command and paste in your keys:

If you only need read access (no writes), you can omit the secret key:

First-run wizard

If this is your first time running any CLI command, you'll be guided through setup automatically:


Step 4 โ€” Verify the connection

Expected output:


Your first commands

List your orders

List your payments

Find a customer by email

View a customer's purchase history

List active subscriptions

List discount codes


Output formats

All list commands support the --format flag for different output types:

Export example:


Available commands

Area
Commands

Auth

auth set, auth whoami, auth clear

Orders

orders list, orders get, orders cancel

Payments

payments list, payments get

Products

products list, products get, products create, products update, products archive, products duplicate

Offers

offers list, offers get, offers create, offers update, offers archive, offers keys add, offers keys remove

Subscriptions

subscriptions list, subscriptions get, subscriptions cancel, subscriptions pause, subscriptions charge

Discounts

discounts list, discounts get, discounts create, discounts update, discounts archive

Users

users list, users get, users create, users update, users archive, users unarchive, users inventory

Elements

elements list, elements create, elements open

Run fungies --help to see all commands, or fungies <command> --help for details on a specific one.


Managing keys

Update your keys

Remove saved keys


Troubleshooting

Not authenticated error

Your keys aren't saved. Run:

Authentication failed

Double-check your keys in the dashboardarrow-up-right. Make sure you're using the correct prefix (pub_ for public, sec_ for secret).

command not found: fungies

Node.js global bin isn't in your PATH. Try:

Or reinstall with:


Need help?

Last updated