@noiseport/cli
v0.2.0
Published
Command-line admin for a [Noiseport](https://noiseport.org) instance — a full mirror of the admin panel over `@noiseport/sdk`, authenticated with a scoped `npt_` API token.
Readme
@noiseport/cli
Command-line admin for a Noiseport instance — a full mirror of the admin panel over @noiseport/sdk, authenticated with a scoped npt_ API token.
Install
npm install -g @noiseport/cli
# or run without installing
npx @noiseport/cli --helpAuthenticate
# paste a token minted in the admin panel or on-box
noiseport context add prod --url https://music.example.org --token npt_...
# or bootstrap one interactively (mints an npt_ token, then discards the session)
noiseport auth login --url https://music.example.orgEnvironment overrides (win over config): NOISEPORT_URL, NOISEPORT_TOKEN, NOISEPORT_CONTEXT.
Commands
auth—login,logout,whoami,token create|list|revokecontext—list,use,add,remove,currentusers—list,get,role,deactivate,reactivate,sessions list|revoke|revoke-allinvites—list,create(prints URL + QR),revokedownloads—stats,list,cancel,delete,clear-failed,clean-stuck,watchlibrary—stats,rescansystem—status,restart,restart-status,resolve-restart,navidrome-credsupdates—check,apply,status,resolveaudit—admin,acquisitionlogs—tailinstance—get,setintegrations—lastfm status|setdoctor— preflight health checkversion— CLI + server versions and compatibilitycompletion— print a shell completion script (bash|zsh|fish)
Global flags
--output table|json · --context <name> · --yes · --dry-run · --debug · --reveal (secrets). Output defaults to JSON when piped; color respects NO_COLOR.
Publish
Performed manually by the maintainer:
pnpm --filter @noiseport/cli build
cd packages/cli && npm publishpublishConfig.registry points npm publish at public npm (overriding any repo .npmrc Forgejo registry). @noiseport/sdk is inlined by tsup, so it is never a publish dependency.
