Skip to content

feat(create): add --skip-install flag to skip dependency installation#782

Merged
jesseturner21 merged 1 commit intomainfrom
feat/skip-install-flag
Apr 7, 2026
Merged

feat(create): add --skip-install flag to skip dependency installation#782
jesseturner21 merged 1 commit intomainfrom
feat/skip-install-flag

Conversation

@jesseturner21
Copy link
Copy Markdown
Contributor

Description

Adds a --skip-install flag to agentcore create that skips all dependency installation (npm install for the CDK project and uv sync for Python agents). This enables enterprise users behind corporate proxies or private registries to modify package.json or pyproject.toml before installing dependencies manually.

The implementation promotes the existing internal AGENTCORE_SKIP_INSTALL env var (previously only used in test utilities) to a public CLI flag. When --skip-install is passed:

  • npm install in agentcore/cdk/ is skipped (via CDKRenderer.ts)
  • uv sync in the agent directory is skipped (via python/setup.ts)
  • A post-create message instructs users to install dependencies manually

Related Issue

Closes #778
Closes #779

Documentation PR

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Additionally tested end-to-end:

  • agentcore create --help shows --skip-install flag with description
  • agentcore create --name test --defaults --skip-install --skip-git creates project scaffolding without node_modules/ in agentcore/cdk/ or .venv in the agent directory
  • Post-create message is displayed: "Dependency installation was skipped. Run 'npm install' in agentcore/cdk/ and 'uv sync' in your agent directory manually."

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

Adds a --skip-install flag to `agentcore create` that skips all
dependency installation (npm install for CDK and uv sync for Python).
This enables enterprise users behind corporate proxies or private
registries to modify package.json/pyproject.toml before installing
dependencies manually.

The flag sets the existing AGENTCORE_SKIP_INSTALL env var (previously
only used in tests) and also implies --skip-python-setup behavior.
A post-create message instructs users to install manually.
@jesseturner21 jesseturner21 requested a review from a team April 7, 2026 15:05
@github-actions github-actions bot added the size/s PR size: S label Apr 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Package Tarball

aws-agentcore-0.6.0.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-782-tarball/aws-agentcore-0.6.0.tgz

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 45.47% 6761 / 14869
🔵 Statements 45.06% 7180 / 15932
🔵 Functions 44.6% 1206 / 2704
🔵 Branches 45.6% 4500 / 9867
Generated in workflow #1636 for commit adabd53 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

@Hweinstock Hweinstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@jesseturner21 jesseturner21 merged commit 380ac6e into main Apr 7, 2026
23 checks passed
@jesseturner21 jesseturner21 deleted the feat/skip-install-flag branch April 7, 2026 15:37
aidandaly24 added a commit that referenced this pull request Apr 8, 2026
Cover 13 PRs merged to main since the initial docs audit (March 28):

- import subcommands: runtime, memory, evaluator, online-eval (#763, #780)
- invoke/dev exec mode with --exec and --timeout (#750)
- code-based evaluator support with --type, --lambda-arn, --timeout (#739)
- ground truth eval inputs: --assertion, --expected-trajectory, --expected-response (#732)
- memory record streaming: --data-stream-arn, --stream-content-level (#531, #534)
- create --skip-install flag (#782)
- fetch access --identity-name option (#774)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support customizable pyproject.toml during project creation Support configurable package.json overrides/resolutions during project creation

2 participants