simm
TypeScript icon, indicating that this package has built-in type declarations

1.1.2Β β€’Β PublicΒ β€’Β Published

simm

npm version npm downloads

Features

βœ… Deploy to any remote server from local

βœ… Supported proxyJump

βœ… Supported sftp (beta)

Install

# npm
npm install -g simm@latest

# yarn
yarn add -g simm@latest

# pnpm
pnpm install -g simm@latest

Usage CLI

npx simm deploy [environment]

Quick Usage

import fs from "node:fs";
import { defineConfig } from "simm";

export default defineConfig({
  servers: {
    production: {
      user: "__USER__",
      host: "__HOST__",
      privateKey: "__PRIVATE_KEY__",
      passsword: "__PASSWORD__",
      deploy: {
        branch: "main",
        repo: `https://github.com/example/example.git`,
        path: "/home/_works/",
        postDeploy: 'pnpm install && pnpm build',
      }
    },
  },
});

Start deploy

npx simm deploy production

Usage with proxyJump server

import fs from "node:fs";
import { defineConfig } from "simm";

export default defineConfig({
  servers: {
    bastion: {
      user: "__USER__",
      host: "__HOST__",
      privateKey: "__PRIVATE_KEY__",
      passsword: "__PASSWORD__",
    },
    production: {
      user: "__USER__",
      host: "__HOST__",
      privateKey: "__PRIVATE_KEY__",
      passsword: "__PASSWORD__",
      proxyJump: 'bastion',
      deploy: {
        branch: "main",
        repo: `https://github.com/example/example.git`,
        path: "/home/_works/",
        postDeploy: 'pnpm install && pnpm build',
      }
    },
  },
});

Sftp (beta)

import { defineConfig } from "simm";

export default defineConfig({
  servers: {
    production: {
      user: "__USER__",
      host: "__HOST__",
      privateKey: "__PRIVATE_KEY__",
      passsword: "__PASSWORD__",
      sftp: {
        source: '/home/local/source',
        dest: '/home/remote/source',
      }
      // proxyJump: 'bastion', when use proxyJump to a bastion server
    },
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i simm

Weekly Downloads

7

Version

1.1.2

License

MIT

Unpacked Size

29 kB

Total Files

21

Last publish

Collaborators

  • playlistduong