# Introduction
# Installation
- Install nodejs
- Install npm
Install with npm or yarn
npm i -g @terun/cli
yarn global add @terun/cli
# First template
Init the config file, usually create a folder called terun
and run the command (inside the folder terun):
terun --init
|_src
|_package.json
++ |_terun
++ |_|_terun.js
If you open the terun.js
and add
module.exports = {
commands: {
example: {
transports: [
{
++ from: "from.txt",
++ to: "to.ex",
++ args: ["MyCommand"]
}
]
}
}
};
Create a file to generate. (You choice the language)
# Using elixir language
defmodule {{MyCommand}}Module do
def hello do
IO.puts "Hello World with entity = {{MyCommand}}"
end
end
Execute the command
terun --make example
Be happy.