Skip to content

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-component

Run development ​

npx nx run [app-name]:serve

Build for production ​

npx nx run [app-name]:build

Output folder: dist/packages/kms

CDK ​

Generate Application ​

npx nx generate @ago-dev/nx-aws-cdk-v2:application [app-name]

Commands ​

CommandDescription
npx nx bootstrapto bootstrap the application
npx nx deployto deploy the application
npx nx destroyto destroy the application

Command Options ​

OptionDescription
--profile=profile-namerun command with spesific AWS Profile
--require-approval=neverrun 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 nx command
    npx nx run api:init
  • With npm command (shortcut)
    npm run api:init

Amplify API Codegen ​

  • With nx command
    npx nx run api:codegen
  • With npm command (shortcut)
    npm run api:codegen

Made with ❤️ by Bagubagu Studio