Normalized profiles and writing
The optional Portline bridge projects global/project deployments and standalone SSH configurations into shared profile records. The original jsbrains SDK quick start remains the starting point for IDE-specific reads.
Install and read profiles
npm install @jalsoedesign/jsbrains-portlineThe bridge requires Node.js 22.22.2 or newer. Save the synthetic configuration files and follow language setup. The configuration directory is on the host.
// read-profiles.ts
import {JetBrainsProfileSource} from '@jalsoedesign/jsbrains-portline';
const source = await JetBrainsProfileSource.open({configPath: process.argv[2] ?? './PhpStorm2026.2'});
const profiles = source.list();
const selected = source.get('global/deployments/demo');
if (!selected) {
throw new Error('The demo profile is missing');
}
console.log('Profiles: ' + profiles.length);
console.log('Selected: ' + selected.path);
for (const connection of selected.connections) {
console.log(connection.id + ': ' + connection.protocol + ' ' + connection.endpoint.host + ':' + connection.endpoint.port);
}
console.log('Host matches: ' + source.search('127.0.0.1', {fields: 'all'}).length);
console.log('Metadata only: no server connection.');// read-profiles.js
import {JetBrainsProfileSource} from '@jalsoedesign/jsbrains-portline';
const source = await JetBrainsProfileSource.open({configPath: process.argv[2] ?? './PhpStorm2026.2'});
const profiles = source.list();
const selected = source.get('global/deployments/demo');
if (!selected) {
throw new Error('The demo profile is missing');
}
console.log('Profiles: ' + profiles.length);
console.log('Selected: ' + selected.path);
for (const connection of selected.connections) {
console.log(connection.id + ': ' + connection.protocol + ' ' + connection.endpoint.host + ':' + connection.endpoint.port);
}
console.log('Host matches: ' + source.search('127.0.0.1', {fields: 'all'}).length);
console.log('Metadata only: no server connection.');// read-profiles.mjs
import {JetBrainsProfileSource} from '@jalsoedesign/jsbrains-portline';
const source = await JetBrainsProfileSource.open({configPath: process.argv[2] ?? './PhpStorm2026.2'});
const profiles = source.list();
const selected = source.get('global/deployments/demo');
if (!selected) {
throw new Error('The demo profile is missing');
}
console.log('Profiles: ' + profiles.length);
console.log('Selected: ' + selected.path);
for (const connection of selected.connections) {
console.log(connection.id + ': ' + connection.protocol + ' ' + connection.endpoint.host + ':' + connection.endpoint.port);
}
console.log('Host matches: ' + source.search('127.0.0.1', {fields: 'all'}).length);
console.log('Metadata only: no server connection.');// read-profiles.cjs
async function main() {
const {JetBrainsProfileSource} = await import('@jalsoedesign/jsbrains-portline');
const source = await JetBrainsProfileSource.open({configPath: process.argv[2] ?? './PhpStorm2026.2'});
const profiles = source.list();
const selected = source.get('global/deployments/demo');
if (!selected) {
throw new Error('The demo profile is missing');
}
console.log('Profiles: ' + profiles.length);
console.log('Selected: ' + selected.path);
for (const connection of selected.connections) {
console.log(connection.id + ': ' + connection.protocol + ' ' + connection.endpoint.host + ':' + connection.endpoint.port);
}
console.log('Host matches: ' + source.search('127.0.0.1', {fields: 'all'}).length);
console.log('Metadata only: no server connection.');
}
main().catch(error => {
console.error(error);
process.exitCode = 1;
});Run it
npx tsx read-profiles.tsnode read-profiles.jsnode read-profiles.mjsnode read-profiles.cjsOutput
Profiles: 2
Selected: global/deployments/demo
connection: sftp 127.0.0.1:22
Host matches: 2
Metadata only: no server connection.Download: TypeScript · JavaScript · MJS · CommonJS
Canonical paths distinguish scope and record type: global/deployments/demo identifies a deployment, while global/ssh/demo-ssh identifies a standalone SSH configuration. They are not filesystem paths.
Preview and apply
Use the separate writer preview example. The jsbrains-profiles command owns normalized query and guarded writing commands; the original jsbrains command remains read-only.
createJetBrainsWriter supports explicit global/project destination policies. Previewing never writes settings; apply rechecks source revision, IDE process state and locks. Project writes require explicit scope and project path. No writer creates/deletes Password Safe entries or copies stored passwords, key contents or host trust policy. Deployment mappings require separate native handling.
Snapshots and execution
Reopen the source to refresh settings. Normalized profiles do not establish an SSH/SFTP session or automatically execute hop relationships. Native recovery backups can contain sensitive original settings even though sync does not copy credential values.
See write safeguards and recovery and connecting a selected profile.
Shared connection execution
The native adapter @jalsoedesign/jsbrains-portline produces the profile records above. Add the separate optional @jalsoedesign/portline-dockline package to execute supported selected definitions. The complete scoped walkthrough shows FTP/SFTP and SSH clients, exact IDE/project selection, canonical host-key pins, Password Safe resolution and explicit native-only refusals. This replaces manual endpoint-to-Dockline mapping; it does not execute OpenSSH configuration or SSH-hop relationships.