market is a Node.js CLI tool for interacting with Mynth markets. It provides a simple command-line interface for authentication and account management.
Get up and running in under a minute:
npm install @mynthai/marketOr run directly without installing:
npx @mynthai/market --helpgit clone https://github.com/MynthAI/market.git
cd market
pnpm install
pnpm build
pnpm linkAuthenticate and start using Market:
market login request you@example.com
market login confirm 123456Use -h or --help with any command to see detailed usage information.
- Node.js v24 (required)
pnpmpackage manager (for building from source)
npm install @mynthai/marketYou can also run Market directly with npx without installing it
globally:
npx @mynthai/market --helpClone the repository and install dependencies:
cd market
pnpm install
pnpm build
pnpm linkAfter linking, the market command will be available globally.
After building, the market command will be available. The market CLI
provides commands to authenticate and manage your account.
market [options] [command]Use -h or --help with any command to see detailed help.
-j, --json— Output results as JSON-t, --toon— Output results as TOON (a compact binary-friendly format used by AI agents)
Login using your email address (non-interactive 2-step flow).
market login request <email>
market login confirm <code>Subcommands
request <email>— Send an authentication code to the email addressconfirm <code>— Confirm the authentication code and complete login
Options for request
-f, --force— Overwrite existing credentials if they exist
Example
market login request you@example.com
market login confirm ABC123Market supports three networks: testnet (default), mainnet, and
local.
The active network is stored in configuration and defaults to testnet.
By default, Market stores its configuration in a platform-appropriate
location. You can override this by setting the MARKET_CONFIG
environment variable to an existing directory path:
MARKET_CONFIG=/path/to/config market login request you@example.comLint the project:
pnpm lintFormat code:
pnpm prettierBuild the project:
pnpm buildRun tests:
pnpm testThis project is licensed under the terms of the MIT License. See the
LICENSE file for details.