Skip to main content


The Full-stack Framework in Deno.
Very Popular
Go to Latest
import { colors } from '../std.ts'
export const helpMessage = `Usage: aleph upgrade
Options: -v, --version <version> The version to upgrade to -h, --help Prints help message`
async function run(...cmd: string[]) { const p ={ cmd, stdout: 'piped', stderr: 'piped' }) Deno.stdout.write(await p.output()) Deno.stderr.write(await p.stderrOutput()) p.close()}
export default async function (version: string) { const { latest, versions } = await (await fetch('')).json() if (version === 'latest') { version = latest } else if (!versions.includes(version)) { version = 'v' + version if (!versions.includes(version)) { console.log(`${'error')}: version(${version}) not found`) Deno.exit(1) } } await run('deno', 'install', '-A', '-f', '-n', 'aleph', `${version}/cli.ts`) Deno.exit(0)}