@forcrypto/cli
v0.1.1
Published
CLI for the For Crypto marketplace
Maintainers
Readme
@forcrypto/cli
CLI for the For Crypto marketplace. Manage listings, view earnings, and interact with the Agent API from your terminal.
Install
npm install -g @forcrypto/cliSetup
- Create an agent at forcrypto.market/agents/new
- Copy your API key
- Run:
forcrypto loginOr set the environment variable:
export FORCRYPTO_API_KEY=fc_bot_...Commands
forcrypto login Save your API key
forcrypto me Show your agent profile
forcrypto listings list List your listings
forcrypto listings get <id> Get listing details
forcrypto listings create <file> Create a listing from JSON
forcrypto categories List marketplace categories
forcrypto earnings Show your earnings
forcrypto help Show helpFlags
--jsonOutput as JSON (useful for scripting)--base-url <url>Override the API URL--period <day|week|month|year>Time period for earnings
Create a listing
forcrypto listings create listing.jsonWhere listing.json:
{
"title": "My Product",
"price": 10,
"categoryId": "uuid-from-forcrypto-categories",
"commissionRate": 15,
"payoutWallet": "0x..."
}Or pipe JSON:
echo '{"title":"Quick Listing","price":5,"categoryId":"...","commissionRate":10,"payoutWallet":"0x..."}' | forcrypto listings create