Reference
CLI
Every command of the flare CLI.
The flare CLI reads the index, launches flares and trades through Flare's API, with the contract's client. It lives in the backend at src/cli/flare.ts and runs from the backend folder:
npm run cli -- <command> [arguments]It talks to FLARE_API_URL, or the URL given with --api, and to http://127.0.0.1:4402 when neither is set. Amounts are typed in whole SOL and whole tokens (0.1, 250000) and sent as base units. Run it with no command to print the usage.
$ npm run cli --
flares [--sort attention|new|volume|marketCap|progress|lastTrade] [--limit 20]
attention <mint>
treasury <mint>
access <mint> [--threshold <base units>] [--epochs <n>]
leaderboard [holders|projects] [--limit 20]
portfolio <wallet>
launch --keypair <file> --name <name> --symbol <symbol> --image <file> [--description <text>]
[--window <days>] [--first-buy <SOL>] [--website <url>] [--x <url>] [--telegram <url>]
… 1 more linesReading
flares
Lists flares, highest score first unless --sort says otherwise: rank, score, ticker, phase, curve progress, 24-hour volume and mint.
| Option | Default | |
|---|---|---|
--sort | attention | attention, new, volume, marketCap, progress or lastTrade |
--limit | 20 | 1 to 100 |
$ npm run cli -- flares --limit 3
#1 1000 GFROG migrating 100.0% 76.400589647 SOL 24h 8GQkU6GDuoevTiLi7WuLq94RXzwDCUTabwS8j2DcYz8F
#2 844 JUNI curve 81.0% 52.045227751 SOL 24h 5Lf8DhDbX6tvh53M1arhHWbQ8FQuUMkc2bBgZiUgPDuW
#3 806 VANT curve 74.0% 40.619859087 SOL 24h 6zuChrJW83wtTHB2RW5MgPFbUJVCrUEWwjrHXMkzEHgfattention
attention <mint> prints the flare's score, rank and when the next epoch closes, then its last 24 epochs with the four components and the holder count.
$ npm run cli -- attention 8GQkU6GDuoevTiLi7WuLq94RXzwDCUTabwS8j2DcYz8F
score 1000 rank 1 next epoch 2026-11-27T08:00:00.000Z
2026-11-27T06:00:00.000Z 1000 #1 volume 1000 holders 1000 (21) velocity 1000 retention 1000
2026-11-27T05:00:00.000Z 1000 #1 volume 1000 holders 1000 (21) velocity 1000 retention 1000
2026-11-27T04:00:00.000Z 1000 #1 volume 1000 holders 1000 (20) velocity 1000 retention 1000
2026-11-27T03:00:00.000Z 1000 #1 volume 1000 holders 1000 (20) velocity 1000 retention 1000
2026-11-27T02:00:00.000Z 985 #1 volume 1000 holders 950 (19) velocity 1000 retention 1000
2026-11-27T01:00:00.000Z 785 #2 volume 1000 holders 950 (19) velocity 0 retention 1000
2026-11-27T00:00:00.000Z 785 #2 volume 1000 holders 950 (19) velocity 0 retention 1000
… 17 more linestreasury
treasury <mint> prints the creator wallet, what has been credited, paid and is pending, the share, and the last 20 credits and payouts with their signatures.
$ npm run cli -- treasury 8GQkU6GDuoevTiLi7WuLq94RXzwDCUTabwS8j2DcYz8F
creator B2iFKkzwkJZQdwJnPR4PoyVxFrHXyBJdVYUNXrZwjNFN total 2.288502917 SOL paid 2.288502917 pending 0 share 50%
2026-11-27T06:30:00.000Z payout 0.031155699 SOL 29hXAHrXEoPuJ8VXULVpn1DC6UTAR5eUQsFKBjqd8Fek4jCQqynWwTSBbi8CUrmVzV9WfEz84CuuU9ffrPSGYP6X
2026-11-27T06:21:27.988Z curve_fee 0.031155699 SOL PveMP1aMHmdgA7hZqd1VYeDTmrziHFBEddgMZUEQ3YhFs6GPLbCvN19jxxaJmxLms8XmcqwBU9K5ETCyY5UeuUF
2026-11-27T05:20:00.000Z payout 0.057436509 SOL 4hSV1MJMFCg9dR5kZirjZZ1QWFKLMaaUAAkW9HAYKGgJrtWpi9c6brBWEV9ZrN2QyYq5pJ376r9435vC8y8aDmy3
2026-11-27T05:16:20.210Z curve_fee 0.057436509 SOL 2ScVDhrDvniyax1dQgi1SpnujL83FuBuyXXbs3xbnm8122geuhsT7bhS6wqWYHqDapcAjU6D1zu5XHdMeWjZKnf8
2026-11-27T04:20:00.000Z payout 0.055378915 SOL 54DraGT9CqQSVMZNJjZLMR3GoEbFVs1vhVjnXnzUMeaScrWneiQ6iFivMqBo1zVYixJ7VnMuRZvh5BeKV4rmst7c
2026-11-27T04:11:12.433Z curve_fee 0.055378915 SOL 3WKBD3pXUYhmPf1R3CwwRLQcYa82gg43JLiExv4QvZyduhpeXv6AuFp9CECk1LzpCCdL5ub9adMAu1uH5f81bpob
2026-11-27T03:10:00.000Z payout 0.041800654 SOL 3PsoMkNs7u1tCCZXuGtugCLV8W2XceRsoBMCoTDvnuFdksnCnxHBfmAN1EytpHqic9JpDwocwSSdQhMkWrbbqmaV
… 13 more linesaccess
access <mint> prints the flare's access list under the creator's rule: each wallet, how many epochs it held for, its first epoch and the least it held. "(window open)" means the list can still grow.
| Option | Default | |
|---|---|---|
--threshold | the creator's rule | Least balance in token base units |
--epochs | the creator's rule | Epoch closes held |
$ npm run cli -- access 8GQkU6GDuoevTiLi7WuLq94RXzwDCUTabwS8j2DcYz8F
20 wallets held 396550+ tokens for 3+ epochs (window open)
73GD3pAwoKEbwVfUmhC4raZi3vmrpH9L6XAVHNexmwNw 58 epochs from 498765 min 127968058.069245
AtNpubTAmbBB6UrMXiJ85fdgsshLWYXR3z1xka9QHyPa 57 epochs from 498766 min 41466350.835797
7Ws3cT8TRCV1cny5dhsNum2NYGvge9HXiDSQ5BHkvNVF 55 epochs from 498768 min 4787484.386695
987HoG33Lzdf4nFmZgEwu24HpSXJMgLn3nga3gPTUAo9 53 epochs from 498770 min 33432534.852017
88kpJT7aREya151AyjamFDQRPiuLFXrWfmCU5yVB9CWt 52 epochs from 498771 min 103333403.722706
9jwx42FTUVFYK8s2YuAaKRBqTXn7vR4APf3FXjbHQgcn 51 epochs from 498772 min 33899052.585025
ChpEUCvAvdm9n7ND2GHk6aDdDYxx7PbU2zbrpy9fPW6W 48 epochs from 498775 min 34598964.098726
… 13 more linesleaderboard
leaderboard [holders|projects] prints the holder leaderboard, the project leaderboard, or both when neither is named. --limit sets the rows, 20 by default.
$ npm run cli -- leaderboard --limit 3
holders
#1 9332 15 flares 73GD3pAwoKEbwVfUmhC4raZi3vmrpH9L6XAVHNexmwNw
#2 8876 14 flares 88kpJT7aREya151AyjamFDQRPiuLFXrWfmCU5yVB9CWt
#3 8788 14 flares Acz2pEVftWazQvehVBVNQsTrPndj5sWY6b8UXX54Uf1L
projects
#1 1671 2 flares top GFROG (1000) B2iFKkzwkJZQdwJnPR4PoyVxFrHXyBJdVYUNXrZwjNFN
#2 1534 3 flares top CINDR (678) E1156D9eDrbgParGC45zdHreeVD35dhJenP6rwfwMS6t
#3 1388 2 flares top JUNI (844) 6uz75EVxi2XrWkw4STM4YiaZY46tocjhHXzLEACxNKTpportfolio
portfolio <wallet> prints each position with its token amount, value, cost and the flare's score, then each flare the wallet launched with its treasury total, score and phase.
$ npm run cli -- portfolio 73GD3pAwoKEbwVfUmhC4raZi3vmrpH9L6XAVHNexmwNw
QUIET 8724100 tokens value 0.42667636 SOL cost 0.335452954 score 561
KITE 5313770 tokens value 0.305852542 SOL cost 0.212231078 score 671
FERRY 4044810 tokens value 1.751199659 SOL cost 1.481164671 score 420
…Signing
launch and trade sign with a keypair file (the JSON array of 64 bytes solana-keygen writes), submit the transaction in relay mode, and wait up to 90 seconds for it to confirm.
launch
Uploads the image and metadata, builds the launch with the first buy, signs, submits and prints the new mint.
| Option | Required | |
|---|---|---|
--keypair | yes | The creator's keypair file |
--name | yes | Up to 32 characters |
--symbol | yes | Up to 10 characters |
--image | yes | A PNG, GIF or JPEG file |
--description | no | Up to 1,000 characters |
--window | no | Days, 3 to 14; 7 when left out |
--first-buy | no | SOL for the creator's first buy; none when left out |
--website, --x, --telegram | no | Links |
$ npm run cli -- launch --keypair wallet.json --name "Docs Example" --symbol DOCS --image apple-icon.png --description "A flare launched for the docs." --window 7 --first-buy 0.5
metadata https://ipfs.io/ipfs/bafkreieffjiyfj5sao24rrdrcgab55caklxjzmqnskey47slnvmjuvqs2e (apple-icon.png)
launched 84dxMEtpQ4rmDxn3ExpckysK7EhHwufF7oqwkPz25JAS confirmed NDHtFAt5trnAFWP9vx5DoVGaUAwiX284Fi9JsvAeayVB7JxiHfzKk67FbycqhMHAPRFz3eyKwCUb2acQA7g3hfD
first buy 17070784.260185 tokens for 0.5 SOLtrade
trade --keypair <file> <mint> buy <SOL> or trade --keypair <file> <mint> sell <tokens>. Prints the quote (venue, amounts and price impact), then the status and signature.
$ npm run cli -- trade --keypair wallet.json 5Lf8DhDbX6tvh53M1arhHWbQ8FQuUMkc2bBgZiUgPDuW buy 0.1
buy on curve: 0.1 SOL for 558010.555794 tokens impact 0.12%
confirmed 4UyQdHv6fBnuYU2xsRZzmSSpPohean5PA3ecKDB8J1ZAQ3fVHjBaZzrLcKabwfiXkTRWFpSu1dwg3aBKCsn3yFF4A refusal prints its code and message and exits with status 1:
$ npm run cli -- trade --keypair wallet.json 8GQkU6GDuoevTiLi7WuLq94RXzwDCUTabwS8j2DcYz8F buy 0.1
CURVE_COMPLETE: This coin sold out its curve and is moving to its Raydium pool. Trading resumes there in a moment.