Skip to main content

A CLI scaffolder for .NET Clean Architecture projects

Project description

StackForge

A CLI scaffolder for .NET Clean Architecture (CQRS) projects.

Installation

pip install stackforge-cli

Usage

stackforge

Then follow the prompts to scaffold a new project.

Version and updates

Check the version you have installed:

stackforge --version

Update to the latest release:

pip install --upgrade stackforge-cli

When you run stackforge, it checks PyPI for a newer version and prints an upgrade notice if one is available (network required; fails silently if offline).

What it generates

  • .NET 10 Clean Architecture structure (API, Application, Domain, Infrastructure, Persistence)
  • JWT authentication with ASP.NET Identity
  • Swagger UI with Bearer token support
  • PostgreSQL with EF Core
  • Docker + docker-compose with healthchecks
  • Role and user seeders (SuperAdmin out of the box)
  • Git initialization on main with staging and development branches
  • GitHub Actions workflow to create staging and development on first push to main

Quickstart after scaffolding

  1. Open the project in VS Code or Visual Studio
  2. Run: docker-compose up --build
  3. Visit: http://localhost:5000/swagger

Git workflow

Each scaffolded project is initialized with three local branches:

Branch Purpose
main Production / default branch
staging Pre-production environment
development Active development environment

A GitHub Actions workflow (.github/workflows/sync-branches.yml) is also included as a fallback: if you only push main first, it creates remote staging and development on GitHub automatically.

Example: push to GitHub

From your scaffolded project directory (e.g. ~/stackforge/MyApi):

# 1. Create a new repo on GitHub (empty, no README), then add the remote
git remote add origin https://github.com/<your-user>/MyApi.git

# 2. Push all branches in one go
git push -u origin --all

That publishes main, staging, and development in a single command and sets upstream tracking for each.

Day-to-day branching

# Work on a feature
git checkout development
git checkout -b feature/my-feature
# ... commit changes ...
git push -u origin feature/my-feature

# Merge into development when ready (via PR or locally)
git checkout development
git merge feature/my-feature
git push origin development

Promote changes up the chain (developmentstagingmain) using pull requests or merges as your team prefers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stackforge_cli-0.1.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stackforge_cli-0.1.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file stackforge_cli-0.1.2.tar.gz.

File metadata

  • Download URL: stackforge_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for stackforge_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0dbd5ddeff5c9338ef26e2fa9e1de307d000c3fafcdcda296593a68d5a80d514
MD5 e58a4fc49946e6c29d62c515baa648cb
BLAKE2b-256 df3691d8b50f258af5843c65ff654053a41c9c2d0b42667b4548253be3e1d6b9

See more details on using hashes here.

File details

Details for the file stackforge_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: stackforge_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for stackforge_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 459e0e1333c4f88b65e05516b0c04b74b99856f066b629b01013a570ac1e0697
MD5 e474f33a6600de94b2e2e913689558ac
BLAKE2b-256 29ae4544b257c02878f0644b4c18539959bcfb85c4dfc28f2c006dd197bbbb69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page