Read, select and search
For IDE-specific objects start with the original SDK quick start. The normalized recipes below continue the Portline bridge example. Reuse its source variable; these are contextual snippets rather than separate programs.
List saved paths
const paths = source.list().map(profile => profile.path);
console.log(paths.join(', '));const paths = source.list().map(profile => profile.path);
console.log(paths.join(', '));const paths = source.list().map(profile => profile.path);
console.log(paths.join(', '));const paths = source.list().map(profile => profile.path);
console.log(paths.join(', '));global/deployments/demo, global/ssh/demo-sshSelect a profile
const profile = source.get('global/deployments/demo');
console.log(profile?.connections[0]?.endpoint.host ?? 'Profile not found');const profile = source.get('global/deployments/demo');
console.log(profile?.connections[0]?.endpoint.host ?? 'Profile not found');const profile = source.get('global/deployments/demo');
console.log(profile?.connections[0]?.endpoint.host ?? 'Profile not found');const profile = source.get('global/deployments/demo');
console.log(profile?.connections[0]?.endpoint.host ?? 'Profile not found');127.0.0.1Selection uses an exact canonical path, including folders or scope where present. It is not a path to a file on the host. A missing path returns undefined.
Search metadata
const matches = source.search('127.0.0.1', {fields: 'all'});
console.log('Matches: ' + matches.length);const matches = source.search('127.0.0.1', {fields: 'all'});
console.log('Matches: ' + matches.length);const matches = source.search('127.0.0.1', {fields: 'all'});
console.log('Matches: ' + matches.length);const matches = source.search('127.0.0.1', {fields: 'all'});
console.log('Matches: ' + matches.length);Matches: 2Search is case-insensitive. Default search uses names/paths; fields: 'all' includes supported connection metadata. It does not resolve credential values.
Snapshots and diagnostics
Reopen the source to refresh changed settings. Inspect connection kinds and diagnostics before assuming a native option has a supported transport equivalent. Raw native settings are opt-in and can contain sensitive data. See API contracts and execution boundaries.