Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Git Checked against Coresmith 0.8.44.

Install private packages

Open as Markdown

An app that installs from a private registry needs credentials while it builds. Add them once, and every app in the team gets them, or only the apps in one project.

Add credentials

  1. Open Settings, Git, and go to Private packages.
  2. Add the registry, with what it needs:
RegistryWhat to enter
ComposerThe host, such as nova.laravel.com, a username, and a password or license key. For Nova and Spark the username is your account email. No username sends a token, as private Packagist expects.
npmThe registry's https:// address, its token, and the scopes it serves, such as @acme. npm, pnpm, Yarn, Bun and Deno all use it.
PythonThe index host, a username, and a password or token, for the index your project already names.
Maven or GradleThe repository ID, a username, and a password or token. Maven matches the ID to the <id> in pom.xml. Gradle matches it to the repository's name, which must be letters and digits only.
RubyGemsThe gem source host, a username and a password. Leave the username empty when the token takes its place, as Gemfury expects.
Git over HTTPSA host, with an owner if you like, such as github.com/acme, and a token. Go modules under that path install privately, and so do git dependencies in npm, pip, Bundler and Composer.
  1. Pick whether every app gets them, or only the apps in one project.

Credentials reach the steps that install and build. Migrations, workers and the running app never see them.

If your repository's .npmrc or .yarnrc.yml reads the token from a variable, such as ${NODE_AUTH_TOKEN}, Coresmith sets that variable during the install. A value you set in the app's own environment wins.

Before the first deploy

When you add an app that installs from a private registry with no credentials yet, Add an app names the host and links to Private packages, so the first deploy doesn't fail on it.

When a registry refuses

If an install is refused, the deploy says which host refused it, and whether Coresmith had no credentials for it, had credentials it turned down, or had credentials that can't read that package.

Who can change them

Owners and Admins add, edit and remove credentials. Developers and Deployers see which hosts have them, never the secrets, and a Developer only sees the ones for projects they can open.