Hello World in the command line


Create a directory for your Hello World application and then switch to it:
mkdir hello-world
cd hello-world

Create the application:
rim -k hello

Create a file hello-world.rim with this code in it:
cat << 'EOF' > hello-world.rim
begin-handler /hello-world public
    get-param name
    @This is Hello World from <<print-out name>>
end-handler
EOF

This service takes input parameter "name" (see get-param), and then outputs it along with a greeting message (see output-statement).

Compile the application:
rim -q

Run the application by executing this service from command line. Note passing the input parameter "name" with value "Mike":
rim -r --req="/hello-world/name=Mike" --exec --silent-header

The output is:
This is Hello World from Mike



Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.