Monorepo containing the unofficial Sharetribe CLI and Build SDK.
This repository contains two npm packages:
Command-line interface for Sharetribe Flex - 100% compatible with the official flex-cli.
npm install -g sharetribe-cli
sharetribe-cli login
sharetribe-cli process listSDK for building and managing Sharetribe Flex transaction processes programmatically.
npm install sharetribe-flex-build-sdkimport { apiGet, apiPost, parseProcessFile } from 'sharetribe-flex-build-sdk';
// Parse EDN process files
const process = parseProcessFile('./process.edn');
// Make API calls programmatically
const processes = await apiGet(apiKey, '/processes/query', { marketplace: 'my-marketplace' });This is a npm workspaces monorepo. To work on both packages:
# Install all dependencies
npm install
# Build all packages
npm run build
# Run tests for all packages
npm run test
# Lint all packages
npm run lint# Build SDK only
npm run build -w packages/sharetribe-flex-build-sdk
# Build CLI only
npm run build -w packages/sharetribe-cli
# Test SDK only
npm run test -w packages/sharetribe-flex-build-sdk- 100% Compatibility with official flex-cli
- Zero vulnerabilities (npm audit clean)
- TypeScript throughout
- Node.js standard library for HTTP (no axios/node-fetch)
- Comprehensive testing
See goals.md for detailed project goals.
Both packages are published independently to npm:
sharetribe-cli- Command-line toolsharetribe-flex-build-sdk- Programmatic SDK
Apache-2.0