npm init --scope=@myorg

Category: Node.js & npm/yarn

npm init --scope=@myorg

Initialize a scoped package under an org namespace (e.g. @myorg/package)

Creates a package.json whose name starts with @myorg/ — scoped packages act like namespaces on the npm registry, preventing name collisions with other packages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.