# generate deep. config json npx-y@deep-foundation/deeplinks--generate # by default auto detect public ip or gitpod urls (gitpod too) # manual config npx-y@deep-foundation/deeplinks--generate--deeplinks="https://links.my-domain.io"--perception="https://peception.my-domain.io" # update and running all containers empty, without links, available for migrations прх-y@deep-foundation/deeplinks--up # apply snapshot generated in gh-actions with basic links and packages npx-y@deep-foundation/deeplinks--snapshot # down all containers without removind data from values npx-y@deep-foundation/deeplinks--down # down and up with updating docker images in sequence npx-y@deep-foundation/deeplinks--down--up
# exec js interactive terminal with deep in variables context npx-y@deep-foundation/deeplinks--exec > deep # DeepClient # instead of using snapshot, do manual migration npx-y@deep-foundation/deeplinks--migrate # unmigrate npx-y@deep-foundation/deeplinks--unmigrate # print all envs npx-y@deep-foundation/deeplinks--envs # exec bash script in envs based on deep.config json in deeplinks directory, for example stop all containers npx-y@deep-foundation/deeplinks--bash="docker compose -p deep down"
Manual export/import packages from admin, without using npm
constdc = '@deep-foundation/core'; constmyPackageId = 1850; // If you just created Package without PackageVersion and PackageNamespace awaitdeep.insert({ type_id:deep.idLocal(dc, 'PackageVersion'), from: { type_id:deep.idLocal(dc, 'PackageNamespace') }, to_id:myPackageId, string:'0.0.1', }); constpackager = deep.Packager(); constpckg = awaitpackager.export({ packageLinkId:myPackageId }); // Save it manually for example JSON.stringify(pckg); // Import again in other system awaitpackager.import(pckg); // Coming soon packager.update({ packageLinkId: myPackageId, pckg });
Write and read packages locally for example on server