+
Skip to content

SolomonAIEngineering/core-cli

Repository files navigation

♨️ Solomon CLI


 ____            ___                                            ____     __     ______
/\  _`\         /\_ \                                          /\  _`\  /\ \   /\__  _\
\ \,\L\_\    ___\//\ \     ___     ___ ___     ___     ___     \ \ \/\_\\ \ \  \/_/\ \/
 \/_\__ \   / __`\\ \ \   / __`\ /' __` __`\  / __`\ /' _ `\    \ \ \/_/_\ \ \  __\ \ \
   /\ \L\ \/\ \L\ \\_\ \_/\ \L\ \/\ \/\ \/\ \/\ \L\ \/\ \/\ \    \ \ \L\ \\ \ \L\ \\_\ \__
   \ `\____\ \____//\____\ \____/\ \_\ \_\ \_\ \____/\ \_\ \_\    \ \____/ \ \____//\_____\
    \/_____/\/___/ \/____/\/___/  \/_/\/_/\/_/\/___/  \/_/\/_/     \/___/   \/___/ \/_____/



Usage: Solomon CLI [options] [command]

⚡️ Unify development and financial operations.

Options:
  -v, --version   display the version number
  -h, --help      display help for command

Commands:
  skaffold        Scaffold various project types and components
  config          Manage CLI configuration and settings
  expense         Track and manage expenses
  invoice         Manage invoices and billing
  reconcile       Reconcile financial records and manage exceptions
  storage         Manage document storage and organization
  dashboard       Financial overview and analytics dashboard
  budget          Budget management and financial forecasting
  cashflow        Manage and analyze cash flow
  payroll         Manage payroll processing and reporting
  help [command]  display help for command

Introduction

In today’s fast-paced environment, organizations are under constant pressure to innovate rapidly while maintaining tight control over financial health. From building full-stack applications to managing complex financial operations, teams often juggle multiple tools and systems—slowing down their workflows, increasing operational costs, and diminishing visibility across critical business areas.

Solomon CLI emerges as a unified solution that seamlessly integrates both development and financial management capabilities into a single, powerful command-line interface. It addresses the entire lifecycle of product development and financial operations, enabling teams to work smarter, faster, and more securely.

Key Capabilities

  1. Full-Stack Development Tooling:

    • Project Scaffolding & Maintenance: Quickly spin up new Next.js projects, React libraries, or Turborepo monorepos with built-in generators.
    • Integrated Toolchains: Streamline front-end and back-end development with preconfigured linters, formatters, bundlers, and testing frameworks.
    • CI/CD Integration: Accelerate deployment with easy-to-configure continuous integration and delivery pipelines, ensuring reliable and automated code releases.
  2. Robust Financial Management:

    • End-to-End Budgeting & Forecasting: Set and adjust budgets, generate real-time financial forecasts, and run sensitivity analyses to inform strategic decisions.
    • Expense Tracking & Reconciliation: Effortlessly categorize expenses, automate invoice matching, and maintain a pristine audit trail with advanced reconciliation features.
    • Cash Flow Analysis & Stress Testing: Leverage AI-driven insights to predict cash flow trends, explore what-if scenarios, and proactively mitigate financial risks.
  3. Automated Payroll & Compliance:

    • Global Payroll Processing: Handle multi-currency payroll runs, tax calculations, and regulatory compliance across regions with a single command.
    • Employee Self-Service: Give team members secure access to payslips, tax documents, and benefits, reducing administrative overhead.
  4. Business Intelligence & Real-Time Dashboards:

    • Financial KPIs & Dashboards: Instantly visualize key metrics—revenue, expenses, profitability, and more—on customizable dashboards.
    • AI-Driven Recommendations: Receive targeted advice to optimize spending, improve invoice payment terms, and enhance long-term financial performance.
    • Scenario Modeling & Benchmarking: Compare your metrics against industry standards, run multiple “what-if” scenarios, and identify growth opportunities.
  5. Secure Document Management & Collaboration:

    • Encrypted Storage & Versioning: Safely store financial documents, track revisions, and manage approvals within a secure, compliant environment.
    • Team Collaboration: Easily share configurations, documents, and workflows across teams and stakeholders, ensuring everyone stays informed and aligned.

With Solomon CLI, you can:

Development Operations

  • Create Next.js applications with various routing patterns
  • Package React libraries with Rollup, tsup, or Vite
  • Set up Turborepo monorepos with advanced configurations
  • Deploy SaaS templates with auth, payments, and team features

Financial Management

  • Track and categorize expenses across departments
  • Create and adjust budgets with forecasting
  • Process payroll with tax calculations and compliance
  • Reconcile financial records automatically
  • Generate comprehensive financial reports

Business Tools

  • Monitor real-time financial metrics
  • Run stress tests on financial scenarios
  • Manage secure document storage
  • Configure team access and permissions

All this is integrated with TypeScript, ESLint, Prettier, Commitlint, and other professional tools to ensure both code quality and financial accuracy.

Why Solomon CLI?

  1. Speed & Efficiency:
    Save hours on setup. With a single command, you'll get a fully configured project that’s ready to develop, test, and deploy.
  2. Consistency Across Projects:
    Establish a unified development experience for your entire team. Solomon CLI ensures every new project adheres to the same standards and structure, minimizing onboarding complexity.
  3. Best Practices Built-In:
    Benefit from industry best practices—clean code architecture, code quality automation, type safety, and sensible defaults—without manually researching and configuring them yourself.
  4. Extensibility & Customization:
    While Solomon CLI offers smart defaults, it doesn’t lock you in. Modify configurations, swap templates, and integrate additional tooling as your project grows.

Key Features

  • Multiple Project Archetypes:
    Target a broad range of development scenarios:

    • Next.js Applications (App & Pages Routers)
    • React Component & UI Libraries
    • TypeScript Utility Packages
    • Full-Stack Monorepos with seamless integrations
    • SaaS Boilerplates designed for production
  • Modern, Reliable Tooling:
    Each generated project comes preconfigured with:

    • TypeScript: Strongly typed code for better reliability and maintainability.
    • ESLint & Prettier: Enforced code style and linting to maintain a clean codebase.
    • Commitlint: Enforce conventional commit messages, making your commit history standardized and easier to parse.
    • tsup: Ship optimized builds for libraries and packages, ensuring fast bundle times and minimal configuration.
    • Vitest: A blazing-fast testing framework, integrated by default to keep your code quality in check.
    • Changesets: Automate versioning, changelogs, and publishing to npm with ease.
  • Highly Scalable Structures:
    Solomon CLI’s monorepo setups integrate seamlessly with tools like Turborepo, enabling advanced caching, parallelization, and code sharing between multiple packages and applications.

  • Production-Ready SaaS Templates:
    Get a jumpstart on building subscription-based services with authentication, payment workflows, and team management out-of-the-box, so you can focus on crafting your unique value proposition.

Quick Start

Install Solomon CLI globally using the package manager of your choice:

# Using npm
npm install -g solomonai-cli

# Using yarn
yarn global add solomonai-cli

# Using pnpm
pnpm add -g solomonai-cli

# Using bun
bun add -g solomonai-cli

After installation, run solomonai-cli --help to discover available commands and options.

Core Commands & Workflows

Create a Next.js Application

Spinning up a Next.js application is a breeze—choose between the modern App Router or the legacy Pages Router:

# App Router (default)
solomonai-cli next my-app

# Pages Router
solomonai-cli next my-app -t pages

# Full-stack T3 Integration (Next.js, tRPC, Prisma, Tailwind)
solomonai-cli next my-app -t fullstack

These commands will scaffold a fully configured Next.js application with TypeScript, ESLint, Prettier, testing tools, and more. You’ll start coding on a solid foundation, complete with best practices already baked in.

Generate a React Library

Building reusable UI components or utilities? Solomon CLI supports multiple configurations for React libraries, ensuring compatibility with various ecosystems:

# Rollup-based React library (default)
solomonai-cli lib my-lib

# React library with Vite
solomonai-cli lib my-components -t vite

# TypeScript utility library with tsup
solomonai-cli lib utils -t tsup

These libraries come ready with testing, linting, and a sensible folder structure. You can immediately focus on writing components or utilities rather than wrangling build scripts.

Establish a Monorepo

Create a well-structured monorepo that scales with your organization’s growth. Solomon CLI sets up Turborepo, workspaces, shared tooling, and a streamlined developer experience:

# Production-grade Next.js monorepo
solomonai-cli monorepo my-project

# SaaS-focused monorepo with authentication, billing, and more
solomonai-cli monorepo my-saas -t saasfly

# Enterprise-oriented monorepo for large-scale applications
solomonai-cli monorepo my-enterprise -t enterprise

Monorepos generated by Solomon CLI come equipped with integrated testing, linting, and CI/CD workflows, ensuring every new package or application inside your workspace meets the same high standards.

Add Components & Packages to Existing Projects

As your monorepo or project evolves, easily add new components, packages, and applications with consistent conventions:

# Generate a new TypeScript package
solomonai-cli generate package utils

# Generate a React package pre-configured with Storybook
solomonai-cli generate react-package ui

# Add a new Next.js application within a monorepo
solomonai-cli generate app admin

These commands ensure your new additions seamlessly integrate with your existing codebase, minimizing setup and configuration overhead.

Advanced Configuration & Customization

While Solomon CLI aims for sensible defaults, you retain full control. Projects are scaffolding templates that you can freely modify. Want to swap out ESLint configs, change the testing framework, or integrate a new CI pipeline? All generated files are yours to adjust. Solomon CLI sets the stage, and you direct the play.

Development, Testing & Building

For those contributing to Solomon CLI itself or experimenting locally:

# Start Solomon CLI in development mode
pnpm dev

# Build the CLI for production
pnpm build

# Create a changeset for versioning & releasing
pnpm changeset

By harnessing Changesets, you can manage versions, generate changelogs, and prepare for npm releases cleanly and efficiently.

Automating Releases & Publishing

Solomon CLI leverages changesets for smart versioning and publishing workflows:

  1. Create an Automation-enabled NPM_TOKEN. Read the docs
  2. Store this token as NPM_TOKEN in your GitHub Actions secrets. Instructions
  3. Install the changeset bot to manage PRs and version bumps.
  4. Enable GitHub Actions to create and approve PRs in your repository’s settings.

Once set up, releasing new versions and publishing packages to npm becomes a largely automated process, freeing up time for feature development and improvements.

Contributing

We warmly welcome contributions to Solomon CLI. If you have an idea, encounter an issue, or want to improve existing functionality, please consider contributing:

  1. Fork the repository to your GitHub account.
  2. Create a feature branch: git checkout -b feature/amazing-feature.
  3. Commit your changes following conventional commit standards:
    git commit -m 'feat: add amazing feature'
  4. Push your branch: git push origin feature/amazing-feature.
  5. Open a Pull Request and detail your changes and rationale.

Our community values code quality, maintainability, and transparency. Before submitting your PR, ensure your code passes all tests, linters, and follows the existing conventions.

Additional Examples & Use Cases

Next.js Applications

# Basic Next.js app with App Router
solomonai-cli next my-app

# Enterprise-grade Next.js setup with authentication, database integration, and robust testing
solomonai-cli next my-enterprise -t enterprise

# Professional admin dashboard with Chakra UI integration
solomonai-cli next my-dashboard -t horizonUI

# Full-stack T3 stack: Next.js, tRPC, Prisma, and Tailwind
solomonai-cli next my-saas -t fullstack

React Libraries

# Simple React component library with Rollup
solomonai-cli lib my-components

# Zero-config TypeScript utility library with tsup
solomonai-cli lib utils -t tsup

# Production-grade TypeScript library with CI/CD, automated releases, Jest, and docs
solomonai-cli lib core -t typescript

Monorepo Templates

# Next.js monorepo with Turborepo and shared configuration
solomonai-cli monorepo my-workspace

# Full SaaS starter with auth, payments, and team management
solomonai-cli monorepo my-saas -t saasfly

# Enterprise monorepo with AWS architecture and best practices
solomonai-cli monorepo my-enterprise -t saasBoilerplate

# Open-source SaaS template featuring Wasp for rapid iteration
solomonai-cli monorepo my-project -t openSaas

Generating Components & Packages Within a Monorepo

# Create a new TypeScript package under packages/
solomonai-cli generate package logger

# Spin up a React package with Storybook support under packages/
solomonai-cli generate react-package ui

# Add a new Next.js application in apps/
solomonai-cli generate app admin

Pro Tips

  • Use the -v (verbose) flag when executing commands for detailed logs and insights during project creation.

  • All templates are TypeScript-first, ensuring type safety from the get-go.

  • Each generated project or package includes a well-integrated testing environment to promote quality and stability.

  • Documentation and example configs are included in most templates, providing guidance on advanced configuration and customization.

  • Run --help on any Solomon CLI command for a full breakdown of available options:

    solomonai-cli next --help
    solomonai-cli lib --help
    solomonai-cli monorepo --help
    solomonai-cli generate --help

Embrace a simpler, more consistent development workflow. With Solomon CLI, you’ll spend less time on configuration and tooling setup, and more time building the solutions that matter.

About

Solomon AI Cli to skaffold project, manage your account, amongst a host of things

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载