Skip to main content

Creating Projects with Command Line (Archetect)

Archetect is an interactive command-line tool for generating new projects from standardized archetypes. This approach provides a terminal-based, scriptable workflow with full control over when and how code reaches repositories.

Prerequisites

  • Archetect CLI installed and configured with the P6M catalog
  • Git installed and configured
  • GitHub CLI installed and authenticated (for the recommended publish flow)
Organization Policy

If your organization requires all project creation to go through Ybor Studio, you may not have access to the command-line approach. Contact your platform administrator if you need Archetect access.

Step 1: Open a Terminal

Navigate to the directory where you want your project to be generated:

cd ~/tmp/demo

Empty terminal prompt in working directory

Step 2: Launch Archetect

Run the archetect command to open the interactive catalog browser:

archetect

Select 01: P6M to browse the P6M archetype catalog.

Archetect catalog selection showing P6M and Archetect options

Step 3: Browse the P6M Catalog

Archetect displays the top-level P6M categories. Use the arrow keys to navigate and Enter to select a category.

P6M catalog categories including JavaScript/TypeScript, Java, Rust, Frontend, and more

Step 4: Select an Archetype

Navigate into a category to see its available archetypes, then select the one that matches your use case.

Archetype list within JavaScript/TypeScript showing Angular, NextJS, NuxtJS, Svelte, and VueJS options

Step 5: Configure Your Project

Archetect's prompting engine walks you through a series of questions defined by the archetype author. Prompts vary by archetype but commonly include things like your GitHub organization, solution name, project prefix, database choice, or port configuration.

Answer each prompt to configure your project. Archetect uses your answers to render the generated output.

Configuration prompts for the selected archetype

Step 6: Generate and Publish

After configuration, Archetect generates your project locally and outputs the commands needed to publish it to GitHub. Run the provided commands to initialize the repository and push:

Project generation complete with publish commands and generated directory visible in ls output

cd <project-name>
git init -b main
gh repo create <your-org>/<project-name> --private --source=. --remote=origin
git add .
git commit -m 'initial commit'
git push -u origin HEAD

What's Included in Your Generated Project

Every project generated through Archetect includes platform capabilities out-of-the-box:

CapabilityWhat You GetLearn More
CI/CD PipelinesGitHub Actions for build, test, version tagging, and promotionBuilds
Container ConfigurationOptimized Dockerfile with multi-stage buildsContainerization
Deployment ManifestsPlatformApplication with Kustomize overlays for dev/staging/prodDeployments
Health Endpoints/health, /health/live, /health/ready endpointsHealth Checks
Structured LoggingJSON logging configured for platform collectionLogging
Metrics & TracingPrometheus metrics endpoint and OpenTelemetry hooksMetrics, Tracing

These are pre-configured to work with the Ybor Platform. Consult the reference documentation to customize behavior or understand how each capability works.

Post-Creation Steps

  1. Review the generated README for setup instructions and architecture overview
  2. Configure any required secrets or environment variables
  3. Run the application locally to verify
  4. Review CI/CD pipelines in GitHub Actions
  5. Check Argo CD for application deployment status


Reference: JIRA ticket YP6M-1172