{"id":15987984,"url":"https://github.com/chappio/directus-extension-static-auth","last_synced_at":"2026-02-10T06:32:12.728Z","repository":{"id":215136539,"uuid":"738187379","full_name":"ChappIO/directus-extension-static-auth","owner":"ChappIO","description":"Provision a static authentication token on boot","archived":false,"fork":false,"pushed_at":"2024-06-11T20:55:11.000Z","size":1032,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T05:43:47.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChappIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-02T16:26:35.000Z","updated_at":"2024-03-16T04:40:10.000Z","dependencies_parsed_at":"2024-10-08T04:00:55.345Z","dependency_job_id":"b87614de-b9cc-42f5-8a7e-21b74fb34f7b","html_url":"https://github.com/ChappIO/directus-extension-static-auth","commit_stats":null,"previous_names":["chappio/directus-extension-static-auth"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fdirectus-extension-static-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fdirectus-extension-static-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fdirectus-extension-static-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fdirectus-extension-static-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChappIO","download_url":"https://codeload.github.com/ChappIO/directus-extension-static-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569130,"owners_count":20959758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T04:00:45.534Z","updated_at":"2026-02-10T06:32:12.616Z","avatar_url":"https://github.com/ChappIO.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Directus extension: Manage Static Tokens on CLI\n[![directus-extension-static-auth](https://npmbadge.com/npm/directus-extension-static-auth?mode=yarn)](https://www.npmjs.com/package/directus-extension-static-auth)\n\nThis simple extension lets you create users and roles with static access tokens from the command line. Very useful to provision your directus deployments and other backend when you're using CI/CD.\n\n## Usage\n\nTo install the extension, simply install the package into your project:\n\n```bash\nnpm install directus-extension-static-auth\n```\n\nor\n\n```bash\nyarn add directus-extension-static-auth\n```\n\nThen, run the `static-auth create` command to create a new user and role with a static access token: `directus static-auth token create my-super-secret-token`.\n\n```bash\ndirectus static-auth --help\n\nUsage: directus static-auth create [options] \u003ctoken\u003e\n\nCreate a static token, the name option is used as the key for the token. This means that if you change the name, a new token will be created.\n\nArguments:\n  token              the token to use\n\nOptions:\n  --name \u003cuserName\u003e  the unique name and key used for user account that manages the token (default: \"Token\")\n  --role \u003croleName\u003e  the name of the role used to manage this authentication. If this option is not provided, the name defaults to the --name option\n  --not-admin        use this flag to prevent this role from becoming an administrator, this allows you to manually manage roles and permissions (default: false)\n  -h, --help         display help for command\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchappio%2Fdirectus-extension-static-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchappio%2Fdirectus-extension-static-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchappio%2Fdirectus-extension-static-auth/lists"}