Quickstart
Run commands from a library
Section titled “Run commands from a library”No account needed — install a library and start running commands immediately.
-
Install a library
Terminal window my library install kubernetes -
Run a command
Library commands are available as top-level subcommands:
Terminal window my kubernetes port-forward svc/my-service -p 8080 -
Discover commands
Terminal window my library list # List installed librariesmy library explore # Browse libraries interactivelymy kubernetes --help # See commands in a library
Create your own commands
Section titled “Create your own commands”Log in to author, publish, and sync your own commands.
-
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!
Next steps
Section titled “Next steps”LibrariesInstall, discover, and manage command libraries.
Creating CommandsLearn the full spec format for authoring commands.
Template VariablesUse dynamic values in your commands.