Command Lines
Angular
Generate application
npx nx g @nx/angular:application [app-name]Generate library
nx g @nx/angular:library [library-name]Generate component
npx nx g @nx/angular:component my-componentRun development
npx nx run [app-name]:serveBuild for production
npx nx run [app-name]:buildOutput folder: dist/packages/kms
CDK
Generate Application
npx nx generate @ago-dev/nx-aws-cdk-v2:application [app-name]Commands
| Command | Description |
|---|---|
npx nx bootstrap | to bootstrap the application |
npx nx deploy | to deploy the application |
npx nx destroy | to destroy the application |
Command Options
| Option | Description |
|---|---|
--profile=profile-name | run command with spesific AWS Profile |
--require-approval=never | run command without the propt for approval |
API Codegen with Amplify CLI
You can generate GraphQL statements (queries, mutations and subscriptions) and type annotations either using nx command directly or with shortcut command using npm.
Amplify API Initialization
- With
nxcommandnpx nx run api:init - With
npmcommand (shortcut)npm run api:init
Amplify API Codegen
- With
nxcommandnpx nx run api:codegen - With
npmcommand (shortcut)npm run api:codegen