Skip to Content
Aperture

Quickstart

Deploy a Node.js job and run it, from an empty directory to a finished execution.

This guide uses the hosted Aperture at https://aperture-server.mountaindev.com. If you run your own server, set APERTURE_API_URL to its URL before step 3 (see Self-hosting).

1. Create a team and a project

Sign up in the dashboard, create a team, then create a project inside it. Copy the project's ID (a UUID) from the project page; the CLI needs it.

2. Install the CLI

The CLI is a Go program in the cli/ directory of the Aperture repository. With Go 1.24 or later:

cd cli
go build -o aperture-cli ./cmd/aperture-cli.go
sudo mv aperture-cli /usr/local/bin/

3. Log in

aperture-cli login you@example.com

The CLI prompts for your password and saves a token (valid for 52 weeks) in its config file.

4. Write a job

The CLI looks for jobs in a jobs/ directory under your current directory, one sub-directory per job:

jobs/
└── hello/
    ├── job.json
    └── index.js

jobs/hello/index.js:

const name = process.env.WHO ?? 'world';
console.log(`Hello, ${name}!`);

jobs/hello/job.json:

{
  "name": "hello",
  "driver": "node",
  "cmd": "node index.js",
  "includes": ["index.js"],
  "params": ["WHO"]
}

includes lists what gets uploaded. Only listed files and directories are packaged; see Job manifest.

5. Deploy

export APERTURE_PROJECT_ID=<your project id>
aperture-cli deploy hello

Deploys are asynchronous: the server accepts the upload and unpacks it in the background, usually within seconds.

6. Run it

aperture-cli run hello WHO=Aperture

The CLI prints the new execution's ID and returns immediately; it doesn't wait for the run. Open the job in the dashboard to watch the execution move from scheduled to running to success, and to read its log (Hello, Aperture!).

Next steps

  • Run the job on a schedule: add "schedule": "0 6 * * *" to job.json and deploy again. See Scheduling.
  • Use secrets: add them to the project, list them in secrets, and read them from environment variables. See Writing jobs.
  • Deploy from CI with a project key. See Deploying from CI.
  • Start the job from AWS or any HTTP client. See Inbound triggers.

On this page