Commands API¶
New Command¶
ok_cli.commands.new
¶
Functions¶
new(name)
¶
Create a new React Native app.
Source code in ok_cli/commands/new.py
Generate Command¶
ok_cli.commands.generate
¶
Functions¶
generate(type, name)
¶
Generate a component, service, or page.
Source code in ok_cli/commands/generate.py
Other Commands¶
ok_cli.commands.add
¶
ok_cli.commands.analytics
¶
ok_cli.commands.build
¶
ok_cli.commands.cache
¶
Functions¶
cache(clear=typer.Option(False, '--clear', help='Clear cache directory'))
¶
Configure or clear build cache.
Source code in ok_cli/commands/cache.py
ok_cli.commands.config
¶
Functions¶
config(key=None)
¶
Show config (reads from package.json or .env).
Source code in ok_cli/commands/config.py
ok_cli.commands.extract_i18n
¶
ok_cli.commands.generate
¶
Functions¶
generate(type, name)
¶
Generate a component, service, or page.
Source code in ok_cli/commands/generate.py
ok_cli.commands.lint
¶
ok_cli.commands.run_task
¶
ok_cli.commands.run
¶
ok_cli.commands.test
¶
ok_cli.commands.update
¶
ok_cli.commands.version
¶
Functions¶
version()
¶
Show CLI version (from pyproject.toml)