Quickstart
This guide walks you through creating a simple command, pushing it to the registry, and running it.
-
Log in
mycli uses email-based magic links for authentication:
Terminal window my cli loginEnter your email address and click the verification link sent to your inbox. After verification, the CLI stores your credentials securely in the OS keyring.
-
Create a command
Scaffold a new command spec:
Terminal window my cli init helloThis creates a
hello/command.yamlfile with a starter template. Edit it:hello/command.yaml schemaVersion: 1kind: commandmetadata:name: helloslug: hellodescription: Say helloargs:positional:- name: namedescription: Who to greetrequired: truesteps:- name: greetrun:- echo "Hello, {{.args.name}}!" -
Push to the registry
Terminal window my cli push -f hello/command.yamlThe CLI validates your spec against the JSON Schema and publishes it to the server.
-
Run
Terminal window my cli run hello -- WorldOutput:
Hello, World!
Using libraries (no account needed)
Section titled “Using libraries (no account needed)”You can also use commands from git-backed libraries without an account:
my library add https://github.com/user/example-library.gitmy <library> <command>Next steps
Section titled “Next steps” Creating Commands Learn the full spec format for authoring commands.
Template Variables Use dynamic values in your commands.
Libraries Share commands via git repos.