Your First Project
Your First Project
Create the project structure:
cnos initcnos doctorAdd values:
cnos value set app.name my-servicecnos value set server.port 3000Create a profile:
cnos profile create stagecnos use --profile stageCreate a local vault and authenticate it:
cnos vault create defaultcnos vault auth defaultcnos secret set app.token --vault defaultCNOS prompts for the secret with masked input when you omit the value, which keeps it out of shell history. For non-interactive scripts, pass the secret over --stdin.
If the project later becomes a monorepo, do not create a second .cnos. Convert the existing repo and add children:
cnos workspace enablecnos workspace add api --package-root apps/apicnos workspace add admin --package-root apps/admin