Core library for AWS Amplify CLI, providing shared utilities, configuration management, and API abstractions used by all Amplify CLI plugins. Current stable version is 4.0.4. Part of the Amplify CLI monorepo which releases roughly weekly. Key differentiators: provides centralized error handling, feature flags, and path management for the CLI ecosystem. Unlike @aws-amplify/cli which is the CLI entry point, this package is the internal toolkit for plugin authors and extension developers.
npm install amplify-cli-coreVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing core types and utilities to read Amplify project's backend configuration.
Update your plugin code to use new context properties: context.amplify.getCategoryPluginInfo vs context.pluginPlatform.
Replace stateManager.getResourceStatus() with stateManager.getCurrentResourceStatus() — the new method returns a different object structure.
Wrap JSONUtilities.parse calls in try/catch or use the safeParse option available in v4+.
Install the entire Amplify CLI: npm install -g @aws-amplify/cli. The core package is bundled and not meant for direct external consumption.
Ensure you have an active Amplify project and are running within a plugin command that receives $TSContext. Do not import stateManager standalone.
Update amplify-cli-core to v4 and regenerate TypeScript types. Also update peer imports: context.amplify is now context.amplify (still valid) but its methods have changed.
No dependency data recorded yet.